Skip to content

Commit

Permalink
Switch back to request-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Kozma committed Feb 29, 2024
1 parent 090a666 commit 5587bb3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{matrix.target}}
cache-on-failure: true

- name: Install Node.js dependencies
env:
Expand Down Expand Up @@ -153,16 +154,13 @@ jobs:
retention-days: 3

- id: get-release-info
shell: bash
uses: octokit/request-action@v2.x
with:
route: GET /repos/{repo}/releases/tag/v{tag}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
data=$(curl -s -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ env.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/releases/tags/v${{ env.PUBLISHED_VERSION }})
echo "data=$data" >> "$GITHUB_OUTPUT"
INPUT_REPO: ${{ github.repository }}
INPUT_TAG: ${{ env.PUBLISHED_VERSION }}

- run: |
echo '${{ steps.get-release-info.outputs.data }}'
Expand Down

0 comments on commit 5587bb3

Please # to comment.