Debian Codegraph @

.github/workflows/update-go-versions.yml

raw
1 ---
2 name: Generate Metric files for new Go version
3
4 on:
5 workflow_dispatch:
6 schedule:
7 - cron: '0 0 1 * *'
8
9 jobs:
10 update-go-versions:
11 name: Update Go Versions and Generate Tests
12 runs-on: ubuntu-latest
13
14 steps:
15 - name: Checkout repository
16 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17
18 - name: Execute bash script
19 run: bash update-go-version.bash
20
21 # If there are no changes (i.e. no diff exists with the checked-out base branch),
22 # no pull request will be created and the action exits silently.
23 - name: Create a Pull Request
24 if: github.event_name != 'pull_request'
25 uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
26 with:
27 token: ${{ secrets.GITHUB_TOKEN }}
28 commit-message: "Update Go Collector metrics for new Go version"
29 title: "chore: Update metrics for new Go version"
30 branch: update-metrics-for-new-go-version
31 base: main
32 draft: false
33 delete-branch: true