-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into bkchr-dmp-check-para-exists
- Loading branch information
Showing
200 changed files
with
5,124 additions
and
2,133 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 |
---|---|---|
|
@@ -74,7 +74,7 @@ jobs: | |
- name: install parity-publish | ||
# Set the target dir to cache the build. | ||
run: CARGO_TARGET_DIR=./target/ cargo install [email protected].2 --locked -q | ||
run: CARGO_TARGET_DIR=./target/ cargo install [email protected].3 --locked -q | ||
|
||
- name: check semver | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -19,10 +19,10 @@ jobs: | |
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v2.1.0 | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.CMD_BOT_APP_ID }} | ||
private_key: ${{ secrets.CMD_BOT_APP_KEY }} | ||
app-id: ${{ secrets.CMD_BOT_APP_ID }} | ||
private-key: ${{ secrets.CMD_BOT_APP_KEY }} | ||
|
||
- name: Check if user is a member of the organization | ||
id: is-member | ||
|
@@ -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 }} | ||
|
||
|
@@ -395,16 +403,30 @@ jobs: | |
- name: Commit changes | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
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 \ | ||
github \ | ||
"https://token:${{ steps.generate_token.outputs.token }}@github.com/${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}.git" || : | ||
push_changes() { | ||
git push github "HEAD:${{ needs.get-pr-branch.outputs.pr-branch }}" | ||
} | ||
git add . | ||
git restore --staged Cargo.lock # ignore changes in Cargo.lock | ||
git commit -m "Update from ${{ github.actor }} running command '${{ steps.get-pr-comment.outputs.group2 }}'" || true | ||
git pull --rebase origin ${{ needs.get-pr-branch.outputs.pr-branch }} | ||
git push origin ${{ needs.get-pr-branch.outputs.pr-branch }} | ||
# Attempt to push changes | ||
if ! push_changes; then | ||
echo "Push failed, trying to rebase..." | ||
git pull --rebase github "${{ needs.get-pr-branch.outputs.pr-branch }}" | ||
# After successful rebase, try pushing again | ||
push_changes | ||
fi | ||
else | ||
echo "Nothing to commit"; | ||
fi | ||
|
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
cache-on-failure: true | ||
|
||
- name: install parity-publish | ||
run: cargo install [email protected].2 --locked -q | ||
run: cargo install [email protected].3 --locked -q | ||
|
||
- name: parity-publish update plan | ||
run: parity-publish --color always plan --skip-check --prdoc prdoc/ | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
cache-on-failure: true | ||
|
||
- name: install parity-publish | ||
run: cargo install [email protected].2 --locked -q | ||
run: cargo install [email protected].3 --locked -q | ||
|
||
- name: parity-publish check | ||
run: parity-publish --color always check --allow-unpublished |
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
cache-on-failure: true | ||
|
||
- name: install parity-publish | ||
run: cargo install [email protected].2 --locked -q | ||
run: cargo install [email protected].3 --locked -q | ||
|
||
- name: parity-publish claim | ||
env: | ||
|
Oops, something went wrong.