Bertho.py
This commit is contained in:
parent
31c46541ce
commit
d99456c51e
1 changed files with 4 additions and 3 deletions
22
.github/workflows/Bertho.py
vendored
Normal file
22
.github/workflows/Bertho.py
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Update maj tag
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Update bertho
|
||||
run: |* @peaceiris
|
||||
|
||||
git config user.name "${GITHUB_ACTOR}"
|
||||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||||
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
|
||||
export TAG_NAME="${GITHUB_REF##refs/tags/}"
|
||||
export TAG_MAJOR="${TAG_NAME%%.*}"
|
||||
git tag --force -a "${TAG_MAJOR}" -m "Release ${TAG_NAME}"
|
||||
git push --force origin "${TAG_MAJOR}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue