mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
skipping commit version
This commit is contained in:
parent
aa1e8484aa
commit
a9efc0343b
1
.github/workflows/commit.yaml
vendored
1
.github/workflows/commit.yaml
vendored
@ -10,6 +10,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-commit:
|
update-commit:
|
||||||
|
if: contains(github.event.head_commit.message, '#release') != true
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
23
.github/workflows/update-stable.yml
vendored
23
.github/workflows/update-stable.yml
vendored
@ -9,7 +9,30 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
update-commit:
|
||||||
|
if: contains(github.event.head_commit.message, '#release')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout the code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get the latest commit hash
|
||||||
|
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Update commit file
|
||||||
|
run: |
|
||||||
|
echo "{ \"commit\": \"$COMMIT_HASH\" }" > app/commit.json
|
||||||
|
|
||||||
|
- name: Commit and push the update
|
||||||
|
run: |
|
||||||
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add app/commit.json
|
||||||
|
git commit -m "chore: update commit hash to $COMMIT_HASH"
|
||||||
|
git push
|
||||||
prepare-release:
|
prepare-release:
|
||||||
|
needs: update-commit
|
||||||
if: contains(github.event.head_commit.message, '#release')
|
if: contains(github.event.head_commit.message, '#release')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user