-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPS: Remove unnecessary workflow steps; run PR workflow on all PRs
skipci
- Loading branch information
1 parent
d7dfad3
commit eedd2f0
Showing
2 changed files
with
15 additions
and
21 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
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 |
---|---|---|
@@ -1,30 +1,26 @@ | ||
# This workflow updates the pull request description with an auto-generated section containing the categorised commit | ||
# message headers of the commits since the last pull request merged into main. The auto generated section is enveloped | ||
# between two comments: "<!--- START AUTOGENERATED NOTES --->" and "<!--- END AUTOGENERATED NOTES --->". Anything | ||
# outside these in the description is left untouched. Auto-generated updates can be skipped for a commit if | ||
# message headers of the pull request's commits. The auto generated section is enveloped between two comments: | ||
# "<!--- START AUTOGENERATED NOTES --->" and "<!--- END AUTOGENERATED NOTES --->". Anything outside these in the | ||
# description is left untouched. Auto-generated updates can be skipped for a commit if | ||
# "<!--- SKIP AUTOGENERATED NOTES --->" is added to the pull request description. | ||
|
||
name: update-pull-request | ||
|
||
# Only trigger for pull requests into main branch. | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
on: pull_request | ||
|
||
jobs: | ||
description: | ||
if: "!contains(github.event.pull_request.body, '<!--- SKIP AUTOGENERATED NOTES --->')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: octue/generate-pull-request-description@1.0.0.beta-2 | ||
id: pr-description | ||
with: | ||
pull_request_url: ${{ github.event.pull_request.url }} | ||
api_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Update pull request body | ||
uses: riskledger/update-pr-description@v2 | ||
with: | ||
body: ${{ steps.pr-description.outputs.pull_request_description }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: octue/[email protected] | ||
id: pr-description | ||
with: | ||
pull_request_url: ${{ github.event.pull_request.url }} | ||
api_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Update pull request body | ||
uses: riskledger/update-pr-description@v2 | ||
with: | ||
body: ${{ steps.pr-description.outputs.pull_request_description }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |