-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (32 loc) · 832 Bytes
/
update-release.yml
File metadata and controls
39 lines (32 loc) · 832 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
37
38
39
name: Update release
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
merge-to-stable:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.SBPAT }}
persist-credentials: false
fetch-depth: 0
- name: Set git config
run: |
git config --local user.email "linkdotnet@action.com"
git config --local user.name "LinkDotNet Bot"
- name: Merge main to stable
run: |
git fetch
git checkout stable
git pull
git merge --no-ff -X theirs origin/main -m "Updating to newest release"
- name: Push changes
uses: ad-m/github-push-action@v1
with:
github_token: ${{ secrets.SBPAT }}
branch: stable
force: true