mirror of
https://github.com/Dasemu/Maskarr.git
synced 2026-11-27 07:46:15 +00:00
chore: use Gitea context in version workflow
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6dab117041
commit
cdb1898c3e
1 file changed
+7
-7
@@ -9,23 +9,23 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bump:
|
bump:
|
||||||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && github.actor != 'github-actions[bot]' }}
|
if: ${{ !contains(gitea.event.head_commit.message, '[skip ci]') && gitea.actor != 'gitea-actions' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ gitea.token }}
|
||||||
|
|
||||||
- name: Configure git identity
|
- name: Configure git identity
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "gitea-actions"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "gitea-actions@noreply.git.zenvairo.es"
|
||||||
|
|
||||||
- name: Determine bump type
|
- name: Determine bump type
|
||||||
id: bump
|
id: bump
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.ref_name }}" = "development" ]; then
|
if [ "${{ gitea.ref_name }}" = "development" ]; then
|
||||||
echo "type=patch" >> "$GITHUB_OUTPUT"
|
echo "type=patch" >> "$GITHUB_OUTPUT"
|
||||||
else
|
else
|
||||||
# main: minor bump only when this push is a merge (an approved
|
# main: minor bump only when this push is a merge (an approved
|
||||||
@@ -57,10 +57,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git add VERSION
|
git add VERSION
|
||||||
git commit -m "chore(release): v${{ steps.version.outputs.new }} [skip ci]"
|
git commit -m "chore(release): v${{ steps.version.outputs.new }} [skip ci]"
|
||||||
git push origin HEAD:${{ github.ref_name }}
|
git push origin HEAD:${{ gitea.ref_name }}
|
||||||
|
|
||||||
- name: Merge main back into development
|
- name: Merge main back into development
|
||||||
if: github.ref_name == 'main'
|
if: gitea.ref_name == 'main'
|
||||||
run: |
|
run: |
|
||||||
git fetch origin development
|
git fetch origin development
|
||||||
git checkout development
|
git checkout development
|
||||||
|
|||||||
Reference in new issue
Block a user