Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow fix #59

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading