Skip to content

Commit

Permalink
move token creation closer to pr creation
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Feb 9, 2024
1 parent 2dd4216 commit bbdec1d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/update-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit bbdec1d

Please sign in to comment.