Skip to content

feat: implement primary transfer functionality for Resource Manager #149

feat: implement primary transfer functionality for Resource Manager

feat: implement primary transfer functionality for Resource Manager #149

Workflow file for this run

name: Dependabot post updates
on:
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: write
pull-requests: write
jobs:
post:
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v2
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-go@v6
with:
go-version-file: ./go.mod
cache-dependency-path: "**/*.sum"
- name: update go toolchain version
if: steps.dependabot-metadata.outputs.package-ecosystem == 'docker' && steps.dependabot-metadata.outputs.dependency-names == 'golang' && steps.dependabot-metadata.outputs.new-version != ''
run: |
go get toolchain@${{ steps.dependabot-metadata.outputs.new-version }}
- name: go build
run: |
make tidy
make generate
make build
- name: git update
uses: planetscale/ghcommit-action@v0.2.19
with:
commit_message: "post update after go dependencies updation"
repo: ${{ github.repository }}
branch: ${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: close and reopen to retrigger workflow
run: |
gh pr ready --undo ${{ github.event.pull_request.number }}
gh pr edit ${{ github.event.pull_request.number }} --add-label "ok-to-test" --remove-label "needs-ok-to-test"
gh pr comment ${{ github.event.pull_request.number }} -b "/test ready-for-review"
env:
GITHUB_TOKEN: ${{ github.token }}