mo-dkrz is updating service versions 🧉 #137
Workflow file for this 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
name: Bump version | |
run-name: ${{ github.actor }} is updating service versions 🧉 | |
# Set the access for individual scopes, or use permissions: write-all | |
permissions: | |
id-token: write | |
pull-requests: write | |
contents: write | |
packages: write | |
on: | |
pull_request: | |
jobs: | |
tests: | |
uses: ./.github/workflows/ci_job.yml | |
dependabot: | |
name: Merge PR by dependabot | |
runs-on: ubuntu-latest | |
needs: tests | |
# Specifically check that dependabot (or another trusted party) created this pull-request, and that it has been labelled correctly. | |
if: github.event.pull_request.user.login == 'dependabot[bot]' | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@v1 | |
with: | |
github-token: "${{ secrets.TOKEN }}" | |
- name: Approve dependabot's PR | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.TOKEN}} | |
- name: Auto-merge for dependabot's PR | |
run: gh pr merge --merge --auto "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.TOKEN}} |