Skip to content

Commit

Permalink
Merge 369b64f into a8034b2
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro authored Mar 16, 2023
2 parents a8034b2 + 369b64f commit 2e8d69f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,23 +124,22 @@ jobs:
> The `post_release` workflow waits for a webhook and then updates the citation files. If the file is not modified by this pull request, please check the latest release on [Zenodo's website](https://zenodo.org/record/592480), close this pull request, and [manually run the workflow](https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow).
>
> This pull request should be auto-merged.
labels: build-docs
reviewers: wkerzendorf, andrewfullard, epassaro
labels: automated, build-docs
team-reviewers: tardis-sn/tardis-infrastructure
id: create-pr

- name: Wait for pull request
run: sleep 30

- name: Approve pull request
uses: juliangruber/approve-pull-request-action@v1
with:
github-token: ${{ secrets.PR_APPROVAL_TOKEN }}
number: ${{ steps.create-pr.outputs.pull-request-number }}
run: gh pr review ${{ steps.create-pr.outputs.pull-request-number }} --approve
env:
GITHUB_TOKEN: ${{ secrets.INFRASTRUCTURE_COORDINATOR_TOKEN }}
if: steps.create-pr.outputs.pull-request-operation == 'created'

- name: Enable automerge
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.BOT_TOKEN }}
token: ${{ secrets.INFRASTRUCTURE_COORDINATOR_TOKEN }}
pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }}
merge-method: squash
13 changes: 6 additions & 7 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,22 @@ jobs:
> ```
>
> Once all the checks pass, you can safely merge this pull request manually.
labels: build-docs
reviewers: wkerzendorf, andrewfullard, epassaro
labels: automated, build-docs
reviewers: tardis-sn/tardis-infrastructure
id: create-pr

- name: Wait for pull request
run: sleep 30

- name: Approve pull request
uses: juliangruber/approve-pull-request-action@v2
with:
github-token: ${{ secrets.PR_APPROVAL_TOKEN }}
number: ${{ steps.create-pr.outputs.pull-request-number }}
run: gh pr review ${{ steps.create-pr.outputs.pull-request-number }} --approve
env:
GITHUB_TOKEN: ${{ secrets.INFRASTRUCTURE_COORDINATOR_TOKEN }}
if: steps.create-pr.outputs.pull-request-operation == 'created'

- name: Enable automerge
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.BOT_TOKEN }}
token: ${{ secrets.INFRASTRUCTURE_COORDINATOR_TOKEN }}
pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }}
merge-method: squash

0 comments on commit 2e8d69f

Please sign in to comment.