Skip to content

Commit

Permalink
Add github-script action to compare URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-1000 committed Nov 6, 2023
1 parent 37e626b commit f8fc21c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
arguments: --stacktrace --parallel clean build
- name: Get Id Token
uses: actions/github-script@v6
with:
script: |
let id_token = await core.getIDToken("https://mc.pswg.dev")
- name: upload
if: always() && github.ref == 'refs/heads/master' && (steps.gradle.outcome == 'success' || steps.gradle.outcome == 'failure')
continue-on-error: true
Expand Down
1 change: 1 addition & 0 deletions scripts/upload_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"Authorization": f"Bearer {os.environ['ACTIONS_ID_TOKEN_REQUEST_TOKEN']}"
},
) as resp:
print(resp.url)
resp.raise_for_status()
token = resp.json()["value"]
with open(file, "rb") as fp:
Expand Down

0 comments on commit f8fc21c

Please sign in to comment.