Skip to content

Commit

Permalink
build(gha): use old authentication method
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 28, 2023
1 parent 15e2ba9 commit dd16f0a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,20 @@ jobs:
runs-on: ubuntu-22.04
needs: test
steps:
- uses: myparcelnl/actions/setup-git-credentials@v3
id: credentials
- uses: actions/checkout@v3
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
persist-credentials: false
token: ${{ secrets.GH_REPO_TOKEN }}

# TODO: Switch to v3 with app credentials when GitHub apps are allowed to bypass status checks. https://github.com/orgs/community/discussions/43460
- uses: myparcelnl/actions/setup-git-credentials@v2
with:
token: ${{ secrets.GH_REPO_TOKEN }}

- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ steps.credentials.outputs.token }}
token: ${{ secrets.GH_REPO_TOKEN }}

- uses: ./.github/actions/setup

Expand All @@ -46,13 +50,12 @@ jobs:
token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}

- name: 'Run monodeploy'
#language=sh
run: |
yarn monodeploy \
--config-file monodeploy.config.cjs \
--log-level 0
env:
GH_TOKEN: ${{ steps.credentials.outputs.token }}
GH_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

rebase-prs:
Expand Down

0 comments on commit dd16f0a

Please sign in to comment.