Skip to content

Commit

Permalink
fix(pdk-upgrade): use github token in rest request
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Aug 7, 2024
1 parent 89e90de commit b165bad
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pdk-upgrade/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,25 @@ inputs:
runs:
using: composite
steps:
- uses: myparcelnl/actions/setup-app-credentials@v4
id: credentials
with:
app-id: ${{ inputs.app-id }}
private-key: ${{ inputs.private-key }}

- name: 'Check latest available versions'
uses: actions/github-script@v6
uses: actions/github-script@v7
id: versions
with:
github-token: ${{ steps.credentials.outputs.token }}
# language=javascript
script: |
const pdkRelease = await github.repos.getLatestRelease({
const pdkRelease = await github.rest.repos.getLatestRelease({
owner: 'myparcelnl',
repo: 'pdk'
});
const jsPdkReleases = await github.repos.listReleases({
const jsPdkReleases = await github.rest.repos.getLatestRelease({
owner: 'myparcelnl',
repo: 'js-pdk'
});
Expand Down

0 comments on commit b165bad

Please sign in to comment.