-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync.yml
More file actions
36 lines (31 loc) · 886 Bytes
/
sync.yml
File metadata and controls
36 lines (31 loc) · 886 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
31
32
33
34
35
36
name: Sync Release Branch
permissions: {}
on:
release:
types:
- created
jobs:
sync-release-branch:
runs-on: ubuntu-latest
permissions:
contents: write
if: startsWith(github.event.release.tag_name, 'v1')
steps:
- name: Check out the repo
uses: actions/checkout@v6
with:
persist-credentials: true
fetch-depth: 0
ref: v1
# The email is derived from the bots user id,
# found here: https://api.github.com/users/github-actions%5Bbot%5D
- name: Configure Git
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Sync Release Branch
run: |
git fetch --tags
git checkout v1
git reset --hard ${GITHUB_REF}
git push --force