diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8007755f2..7e49051ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,8 +71,6 @@ jobs: runs-on: ubuntu-latest needs: run-tests steps: - - uses: actions/checkout@v3 - - name: Create Release uses: actions/create-release@v1 env: diff --git a/.github/workflows/update-pull-request.yml b/.github/workflows/update-pull-request.yml index 1efc58f3c..30f1c7150 100644 --- a/.github/workflows/update-pull-request.yml +++ b/.github/workflows/update-pull-request.yml @@ -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: "" and "". 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: +# "" and "". Anything outside these in the +# description is left untouched. Auto-generated updates can be skipped for a commit if # "" 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, '')" 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/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 }}