Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/update-template-pins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,21 @@ jobs:
delete-branch: true
labels: dependencies

- name: Link the pull request
if: steps.cpr.outputs.pull-request-operation == 'created' || steps.cpr.outputs.pull-request-operation == 'updated'
env:
OPERATION: ${{ steps.cpr.outputs.pull-request-operation }}
URL: ${{ steps.cpr.outputs.pull-request-url }}
run: echo "::notice title=Pull request ${OPERATION}::$URL"

- name: Explain a failure to create the pull request
if: failure() && steps.cpr.outcome == 'failure'
run: |
url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/settings/actions"
msg="If the error is 'GitHub Actions is not permitted to create or approve pull requests': open $url, check 'Allow GitHub Actions to create and approve pull requests' under 'Workflow permissions', save, and re-run this workflow."
echo "::error title=Could not create the pull request::$msg"
echo "$msg" >> "$GITHUB_STEP_SUMMARY"

- name: Run tests on the pull request
# A pull request opened with GITHUB_TOKEN gets `pull_request` runs held for
# approval, but `workflow_dispatch` runs right away, on the PR head.
Expand Down
13 changes: 13 additions & 0 deletions project_name/.github/workflows/deps-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,19 @@ jobs:
branch: deps/update
delete-branch: true
labels: dependencies
- name: Link the pull request
if: steps.cpr.outputs.pull-request-operation == 'created' || steps.cpr.outputs.pull-request-operation == 'updated'
env:
OPERATION: ${{ steps.cpr.outputs.pull-request-operation }}
URL: ${{ steps.cpr.outputs.pull-request-url }}
run: echo "::notice title=Pull request ${OPERATION}::$URL"
- name: Explain a failure to create the pull request
if: failure() && steps.cpr.outcome == 'failure'
run: |
url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/settings/actions"
msg="If the error is 'GitHub Actions is not permitted to create or approve pull requests': open $url, check 'Allow GitHub Actions to create and approve pull requests' under 'Workflow permissions', save, and re-run this workflow."
echo "::error title=Could not create the pull request::$msg"
echo "$msg" >> "$GITHUB_STEP_SUMMARY"
- name: Run tests on the pull request
# A pull request opened with GITHUB_TOKEN gets `pull_request` runs held for
# approval, but `workflow_dispatch` runs right away, on the PR head.
Expand Down
Loading