Skip to content

Bug fix in reset offset page #3104

Bug fix in reset offset page

Bug fix in reset offset page #3104

name: Dependabot Automation
on: pull_request_target
permissions:
contents: write
pull-requests: write
issues: write
repository-projects: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Project metadata
uses: radcortez/project-metadata-action@603060a0627d4f04d37d20331ebd472377fd088b
id: projmeta
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
metadata-file-path: '.github/project.yml'
local-file: 'true'
- name: Determine milestone
id: milestone
uses: actions/github-script@v7
env:
VERSION: "${{ steps.projmeta.outputs.next-version }}"
with:
script: |
const nextVersion = process.env.VERSION;
core.setOutput('next-version', nextVersion.replace("-SNAPSHOT", ""));
- name: Set PR milestone
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr edit "$PR_URL" --milestone "${{ steps.milestone.outputs.next-version }}"
- name: Approve PR
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr review --approve "$PR_URL"
- name: Merge PR
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.DEPENDENCY_TOKEN }}
run: gh pr merge "$PR_URL" --auto --squash