Skip to content

mo-dkrz is updating service versions 🧉 #128

mo-dkrz is updating service versions 🧉

mo-dkrz is updating service versions 🧉 #128

Workflow file for this run

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}}