Skip to content

Commit b6ae078

Browse files
authored
chore: further optimizations to workflow
1 parent 9ce55f8 commit b6ae078

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/on_merge.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ jobs:
1919
run: yarn authors
2020

2121
- name: Check if AUTHORS.md has changed
22-
id: check_changes
2322
run: |
2423
if git status --porcelain | grep 'AUTHORS.md'; then
25-
echo "changed=true" >> $GITHUB_ENV
24+
echo "CHANGED=true" >> $GITHUB_ENV
2625
else
27-
echo "changed=false" >> $GITHUB_ENV
26+
echo "CHANGED=false" >> $GITHUB_ENV
2827
fi
28+
29+
echo "CHANGED is $CHANGED"
2930
3031
- name: Commit changes
31-
if: steps.check_changes.outputs.changed == 'true'
32+
if: ${{ env.CHANGED == 'true' }}
3233
run: |
3334
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3435
git config --local user.name "github-actions[bot]"

0 commit comments

Comments
 (0)