Skip to content

Commit 9ce55f8

Browse files
authored
merge(#2): chore: update authors check in workflow with porcelain ifs
chore: update authors check in workflow with porcelain ifs
2 parents ae01d1a + 76164fa commit 9ce55f8

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/on_merge.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
2121
- name: Check if AUTHORS.md has changed
2222
id: check_changes
2323
run: |
24-
git diff --exit-code || echo "::set-output name=changed::true"
24+
if git status --porcelain | grep 'AUTHORS.md'; then
25+
echo "changed=true" >> $GITHUB_ENV
26+
else
27+
echo "changed=false" >> $GITHUB_ENV
28+
fi
2529
2630
- name: Commit changes
2731
if: steps.check_changes.outputs.changed == 'true'

.markdownlintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
.lintstagedrc.json
33
.markdownlintignore
44
.prettier*
5+
AUTHORS.md
56
node_modules/
6-
yarn.lock
7+
yarn.lock

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
.markdownlintignore
44
.prettierignore
55
.vscode/
6+
AUTHORS.md
67
dist/
78
LICENSE
89
node_modules/
910
package-lock.json
1011
package.json
11-
yarn.lock
12+
yarn.lock

0 commit comments

Comments
 (0)