Skip to content

Commit 96feb67

Browse files
[release] add missing needs in release job
1 parent b59006c commit 96feb67

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/release.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
workflow_run:
1212
workflows: [CI]
1313
types: [completed]
14+
branches: [main]
1415

1516
jobs:
1617
check_commit:
@@ -44,17 +45,13 @@ jobs:
4445
4546
release:
4647
name: Release
48+
needs: [check_commit]
4749
runs-on: ubuntu-latest
48-
#if: ${{ needs.check_commit.outputs.IS_RELEASE == 'true' }}
50+
if: ${{ needs.check_commit.outputs.IS_RELEASE == 'true' }}
4951
env:
5052
IS_RELEASE: ${{ needs.check_commit.outputs.IS_RELEASE }}
5153
LATEST_COMMIT_MSG: ${{ needs.check_commit.outputs.LATEST_COMMIT_MSG }}
5254
steps:
53-
- name:
54-
run: |
55-
echo "IS_RELEASE=${IS_RELEASE}"
56-
echo "LATEST_COMMIT_MSG=${LATEST_COMMIT_MSG}"
57-
5855
- name: Check out Git repository
5956
uses: actions/checkout@v4
6057

0 commit comments

Comments
 (0)