Skip to content

Commit

Permalink
Merge pull request #59 from piotrnarajowski/wid_pr4
Browse files Browse the repository at this point in the history
workflow fix
  • Loading branch information
piotrnarajowski authored Jul 23, 2024
2 parents 8ab6658 + baad106 commit 27afb23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run_cron_from_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

env:
PR_NUMBER: ${{ github.event.number }}
CHANGES_DETECTED: 0

jobs:
check_changes:
Expand All @@ -21,18 +20,19 @@ jobs:

- name: Check for changes in autopts/wid directory
id: check_changes
continue-on-error: true
run: |
python .github/check_for_changes.py
echo "Script exited with code $?"
- name: Set output
id: set_output
if: ${{ steps.check_changes.outcome == 'success' }}
if: ${{ steps.check_changes.outcome == 'success' && success() || failure() }}
run: |
echo "changed_files=$(cat changed_files_formatted.txt)" >> $GITHUB_OUTPUT
- name: Post comment on PR
if: ${{ steps.check_changes.outcome == 'success' }}
if: ${{ steps.check_changes.outcome == 'success' && success() || failure() }}
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -41,7 +41,7 @@ jobs:
\#AutoPTS run mynewt ${{ steps.set_output.outputs.changed_files }} --test-case-limit 10
- name: Post comment on PR
if: ${{ steps.check_changes.outcome == 'success' }}
if: ${{ steps.check_changes.outcome == 'success' && success() || failure()}}
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 27afb23

Please sign in to comment.