Skip to content

Commit 49b02dd

Browse files
authored
Merge pull request #773 from thecodacus/workflowfix
chore: Workflow fix
2 parents 00d871b + e601da9 commit 49b02dd

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/commit.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,17 @@ jobs:
1717
- name: Checkout the code
1818
uses: actions/checkout@v3
1919

20-
- name: Get the latest commit hash
21-
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
22-
23-
2420
- name: Setup Node.js
2521
uses: actions/setup-node@v4
2622
with:
2723
node-version: '20'
28-
29-
30-
- name: Update commit file
24+
- name: Get the latest commit hash
3125
run: |
26+
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
3227
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
28+
29+
- name: Update commit file
30+
run: |
3331
echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
3432
3533
- name: Commit and push the update

.github/workflows/update-stable.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,13 @@ jobs:
158158
echo "$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT
159159
echo "EOF" >> $GITHUB_OUTPUT
160160
161-
- name: Commit and Tag Release
161+
- name: Get the latest commit hash and version tag
162162
run: |
163163
echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
164164
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
165+
166+
- name: Commit and Tag Release
167+
run: |
165168
git pull
166169
echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
167170
git add package.json pnpm-lock.yaml changelog.md app/commit.json

app/commit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "commit": "de2cb43d170033c43a6cf436af02e033f66a7e4d" , "version": "" }
1+
{ "commit": "47a1def87778d223b21b8468fcfd974b9498be5a" }

0 commit comments

Comments
 (0)