We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ff4d6a commit 2a79d3eCopy full SHA for 2a79d3e
.github/workflows/CI.yml
@@ -31,15 +31,15 @@ jobs:
31
should_publish: ${{ steps.check-commit.outputs.should_publish }}
32
steps:
33
- name: Checkout code
34
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
35
- name: Check commit message for version
36
id: check-commit
37
run: |
38
commit_msg=$(git log --format=%B -n 1)
39
if [[ $commit_msg =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
40
- echo "::set-output name=should_publish::true"
+ echo "should_publish=true" >> $GITHUB_OUTPUT
41
else
42
- echo "::set-output name=should_publish::false"
+ echo "should_publish=false" >> $GITHUB_OUTPUT
43
fi
44
build:
45
if: needs.check-version-in-commit.outputs.should_publish == 'true'
0 commit comments