-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.51 KB
/
release-to-branch.yml
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
37
38
39
40
41
name: Release to release branch
on:
release:
types: [published]
jobs:
sync-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- run: git describe --abbrev=0 --tags > /tmp/version
- run: git checkout -b release
- run: git push --force https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} release
env:
GITHUB_TOKEN: ${{ github.token }}
# - uses: everlytic/branch-merge@1.1.2
# with:
# github_token: ${{ github.token }}
# source_ref: ${{ github.ref }}
# target_branch: 'release'
# commit_message_template: '[Automated] Merged {source_ref} into target {target_branch}'
# - run: git describe --abbrev=0 --tags > /tmp/version
# - uses: actions/checkout@v3
# with:
# ref: release
# - run: git config --global user.email "kounoike.yuusuke+github-autocommit@gmail.com"
# - run: git config --global user.name "Auto-Release"
# - run: git merge --allow-unrelated-histories ${{ github.ref }}
# - run: mv /tmp/version .
# - name: push
# uses: github-actions-x/commit@v2.6
# with:
# files: version
# github-token: ${{ github.token }}
# push-branch: 'release'
# force-add: 'true'
# commit-message: '[Automated] Merged release and add version file'
# name: Auto-release
# email: kounoike.yuusuke+github-autocommit@gmail.com