forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -292,9 +292,17 @@ jobs: | |
image: ${{ needs.set-image.outputs.IMAGE }} | ||
timeout-minutes: 1440 # 24 hours per runtime | ||
steps: | ||
- name: Generate token | ||
uses: actions/create-github-app-token@v1 | ||
id: generate_token | ||
with: | ||
app-id: ${{ secrets.CMD_BOT_APP_ID }} | ||
private-key: ${{ secrets.CMD_BOT_APP_KEY }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.generate_token.outputs.token }} | ||
repository: ${{ needs.get-pr-branch.outputs.repo }} | ||
ref: ${{ needs.get-pr-branch.outputs.pr-branch }} | ||
|
||
|
@@ -392,18 +400,12 @@ jobs: | |
name: command-output | ||
path: /tmp/cmd/command_output.log | ||
|
||
- name: Generate token | ||
uses: actions/create-github-app-token@v1 | ||
id: generate_token | ||
with: | ||
app-id: ${{ secrets.CMD_BOT_APP_ID }} | ||
private-key: ${{ secrets.CMD_BOT_APP_KEY }} | ||
|
||
- name: Commit changes | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "cmd-bot" | ||
git config --global user.name command-bot | ||
git config --global user.email "<>" | ||
git config --global pull.rebase false | ||
# Push the results to the target branch | ||
git remote add \ | ||
|