diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fb1a0f7..4debea2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,18 +13,18 @@ jobs: outputs: matrix: ${{ steps.list.outputs.value }} steps: - - name: 'Check out devops repo' - uses: actions/checkout@v4.0.0 - - 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/create-github-app-token@v1.11.0 with: app_id: ${{ secrets.AUTOMERGE_APP_ID }} private_key: ${{ secrets.AUTOMERGE_APP_PRIVATE_KEY }} - + - name: 'Check out devops repo' + uses: actions/checkout@v4.0.0 + - 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] @@ -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 }}'