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 2faeb05 commit 072b97cCopy full SHA for 072b97c
.github/workflows/sync.yml
@@ -15,12 +15,17 @@ jobs:
15
- name: Check if sync is required
16
id: check
17
run: |
18
- COMMIT_MSG="${{ github.event.head_commit.message }}"
+ {
19
+ echo 'COMMIT_MSG<<__EOF__'
20
+ echo '${{ github.event.head_commit.message }}'
21
+ echo '__EOF__'
22
+ } >> "$GITHUB_ENV"
23
+
24
if [[ "$COMMIT_MSG" == *"(sync):"* ]]; then
- echo "should_sync=true" >> $GITHUB_OUTPUT
25
+ echo "should_sync=true" >> "$GITHUB_OUTPUT"
26
echo "::notice::Commit message contains (sync): - triggering sync workflow"
27
else
- echo "should_sync=false" >> $GITHUB_OUTPUT
28
+ echo "should_sync=false" >> "$GITHUB_OUTPUT"
29
echo "::notice::Commit message does not contain (sync): - skipping sync"
30
fi
31
0 commit comments