forked from pinchbench/skill
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 829 Bytes
/
release.yml
File metadata and controls
30 lines (25 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Release
on:
release:
types: [published]
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.RELEASE_PAT }}
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Update BENCHMARK_VERSION file
run: echo "${{ steps.version.outputs.VERSION }}" > BENCHMARK_VERSION
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add BENCHMARK_VERSION
git commit -m "chore: bump version to ${{ steps.version.outputs.VERSION }}"
git push