Skip to content

Commit 07a82c1

Browse files
committed
fix: Update execution-env-publish.yml for improved condition checks
- Changed echo statements to use single quotes for consistency. - Updated conditional checks to use the `contains` function for better clarity when determining if the workflow file was modified.
1 parent ae1fb26 commit 07a82c1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/execution-env-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
id: determine-targets
5757
run: |
5858
if [ "${{ github.event_name }}" == "workflow_dispatch" ] && [ "${{ github.event.inputs.build_all }}" == "true" ]; then
59-
echo "languages=${{ env.ALL_LANGUAGES }}" >> $GITHUB_OUTPUT
60-
elif [ "${{ github.event_name }}" == "push" ] && echo "${{ github.event.head_commit.modified }}" | grep -q ".github/workflows/execution-env-publish.yml"; then
59+
echo 'languages=${{ env.ALL_LANGUAGES }}' >> $GITHUB_OUTPUT
60+
elif [ "${{ github.event_name }}" == "push" ] && [ "${{ contains(github.event.head_commit.modified, '.github/workflows/execution-env-publish.yml') }}" == "true" ]; then
6161
# If workflow itself changed, build everything
62-
echo "languages=${{ env.ALL_LANGUAGES }}" >> $GITHUB_OUTPUT
62+
echo 'languages=${{ env.ALL_LANGUAGES }}' >> $GITHUB_OUTPUT
6363
else
6464
echo "languages=${{ steps.changes.outputs.changes }}" >> $GITHUB_OUTPUT
6565
fi

0 commit comments

Comments
 (0)