Skip to content

Commit

Permalink
Update test_wf_run_status.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
M-7th authored Nov 13, 2024
1 parent dad7c03 commit 4efb1eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test_wf_run_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ on:

# scheduled run every Friday at 19.00 (18.00 UTC)
schedule:
- cron: '15 12 * * 3'
- cron: '20 12 * * 3'
- cron: '25 12 * * 3'
- cron: '30 13 * * 3'
- cron: '40 13 * * 3'
- cron: '50 13 * * 3'

jobs:
test_previous_run:
runs-on: ubuntu-latest

steps:
- name: trace init
if: github.event.schedule == '15 12 * * 3'
if: github.event.schedule == '30 13 * * 3'
run: |
echo "testing wf run"
exit 1
# Step per ottenere le informazioni dell'ultima esecuzione
- name: Get last workflow run
id: get_last_run
if: github.event.schedule != '15 12 * * 3'
if: github.event.schedule != '30 13 * * 3'
uses: actions/github-script@v6
with:
script: |
Expand All @@ -38,7 +38,7 @@ jobs:
# Step per controllare lo stato
- name: Check workflow result
if: ${{ github.event.schedule != '15 12 * * 3' && steps.get_last_run.outputs.conclusion == 'success' }}
if: ${{ github.event.schedule != '30 13 * * 3' && steps.get_last_run.outputs.conclusion == 'success' }}
run: |
echo "Previous run was successful. No need to run the workflow today."
exit 0 # Stop workflow run
Expand Down

0 comments on commit 4efb1eb

Please sign in to comment.