skipping commit version
Browse files
.github/workflows/commit.yaml
CHANGED
|
@@ -10,6 +10,7 @@ permissions:
|
|
| 10 |
|
| 11 |
jobs:
|
| 12 |
update-commit:
|
|
|
|
| 13 |
runs-on: ubuntu-latest
|
| 14 |
|
| 15 |
steps:
|
|
|
|
| 10 |
|
| 11 |
jobs:
|
| 12 |
update-commit:
|
| 13 |
+
if: contains(github.event.head_commit.message, '#release') != true
|
| 14 |
runs-on: ubuntu-latest
|
| 15 |
|
| 16 |
steps:
|
.github/workflows/update-stable.yml
CHANGED
|
@@ -9,7 +9,30 @@ permissions:
|
|
| 9 |
contents: write
|
| 10 |
|
| 11 |
jobs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
prepare-release:
|
|
|
|
| 13 |
if: contains(github.event.head_commit.message, '#release')
|
| 14 |
runs-on: ubuntu-latest
|
| 15 |
|
|
|
|
| 9 |
contents: write
|
| 10 |
|
| 11 |
jobs:
|
| 12 |
+
update-commit:
|
| 13 |
+
if: contains(github.event.head_commit.message, '#release')
|
| 14 |
+
runs-on: ubuntu-latest
|
| 15 |
+
|
| 16 |
+
steps:
|
| 17 |
+
- name: Checkout the code
|
| 18 |
+
uses: actions/checkout@v3
|
| 19 |
+
|
| 20 |
+
- name: Get the latest commit hash
|
| 21 |
+
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
| 22 |
+
|
| 23 |
+
- name: Update commit file
|
| 24 |
+
run: |
|
| 25 |
+
echo "{ \"commit\": \"$COMMIT_HASH\" }" > app/commit.json
|
| 26 |
+
|
| 27 |
+
- name: Commit and push the update
|
| 28 |
+
run: |
|
| 29 |
+
git config --global user.name "github-actions[bot]"
|
| 30 |
+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
| 31 |
+
git add app/commit.json
|
| 32 |
+
git commit -m "chore: update commit hash to $COMMIT_HASH"
|
| 33 |
+
git push
|
| 34 |
prepare-release:
|
| 35 |
+
needs: update-commit
|
| 36 |
if: contains(github.event.head_commit.message, '#release')
|
| 37 |
runs-on: ubuntu-latest
|
| 38 |
|