Skip to content

Commit

Permalink
Only check if the file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanspeck committed Sep 20, 2024
1 parent 985fba8 commit bb293d1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,8 @@ jobs:
- name: Test
run: npm test

- name: Is error file created?
if: ${{ hashFiles('tldr-bot-errors.md') != '' }}
run: echo "error file exists"

- name: Is check results file created?
if: ${{ hashFiles('tldr-bot-check-results.md') != '' }}
run: echo "check results file exists"

- name: Comment any errors on PR
if: github.event.number != null && ${{ hashFiles('tldr-bot-errors.md') != '' }}
if: ${{ hashFiles('tldr-bot-errors.md') != '' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: tldr-bot-errors
Expand All @@ -58,7 +50,7 @@ jobs:
path: tldr-bot-errors.md

- name: Comment any PR check results on PR
if: github.event.number != null && ${{ hashFiles('tldr-bot-check-results.md') != '' }}
if: ${{ hashFiles('tldr-bot-check-results.md') != '' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: tldr-bot-check-results
Expand Down

0 comments on commit bb293d1

Please sign in to comment.