diff --git a/.github/workflows/update-artifacts.yml b/.github/workflows/update-artifacts.yml index 2c50c2d9fd..4b94c570f4 100644 --- a/.github/workflows/update-artifacts.yml +++ b/.github/workflows/update-artifacts.yml @@ -20,14 +20,6 @@ jobs: name: Renew Artifacts runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ secrets.SUBXT_PR_MAKER_APP_ID }} - private-key: ${{ secrets.SUBXT_PR_MAKER_APP_KEY }} - - name: Checkout sources - uses: actions/checkout@v4 - # We run this (up-to-date) node locally to fetch metadata from it for the artifacts - name: Use substrate and polkadot node binaries uses: ./.github/workflows/actions/use-nodes @@ -53,6 +45,14 @@ jobs: - name: Delete substrate node binary run: rm ./substrate-node + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ secrets.SUBXT_PR_MAKER_APP_ID }} + private-key: ${{ secrets.SUBXT_PR_MAKER_APP_KEY }} + - name: Checkout sources + uses: actions/checkout@v4 + - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: