Skip to content

Commit

Permalink
Rearrange Github app token step and use app token for check steps
Browse files Browse the repository at this point in the history
  • Loading branch information
F-WRunTime committed Dec 3, 2024
1 parent 58979d7 commit e7ed705
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
outputs:
matrix: ${{ steps.list.outputs.value }}
steps:
- name: 'Check out devops repo'
uses: actions/[email protected]
- id: list
name: 'List automerge repos'
run: echo "value=$(cat test/automerge.json | tr -d '\n')" >> $GITHUB_OUTPUT
- name: 'Generate GitHub App Token'
id: automerge_token
uses: actions/[email protected]
with:
app_id: ${{ secrets.AUTOMERGE_APP_ID }}
private_key: ${{ secrets.AUTOMERGE_APP_PRIVATE_KEY }}

- name: 'Check out devops repo'
uses: actions/[email protected]
- id: list
name: 'List automerge repos'
run: echo "value=$(cat test/automerge.json | tr -d '\n')" >> $GITHUB_OUTPUT

automerge-test:
name: 'Automerge'
runs-on: [ubuntu-latest]
Expand All @@ -35,6 +35,8 @@ jobs:
value: ${{fromJson(needs.list.outputs.matrix)}}
steps:
- name: 'Check Automerge Repo to Test'
env:
GITHUB_TOKEN: ${{ needs.list.outputs.token }}
uses: actions/checkout@v4

- name: 'Automerge runtimeverification/${{ matrix.value }}'
Expand Down

0 comments on commit e7ed705

Please sign in to comment.