test-action-composite-checkschedule #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-action-composite-checkschedule | |
on: | |
push: | |
paths: | |
- .github/workflows/test-action-composite-checkschedule.yaml | |
schedule: | |
# Trigger every Monday, then checkschedule will check if today is within the first 7 days | |
- cron: '0 0 * * mon' | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
check-schedule: | |
outputs: | |
continue-to-run: ${{ steps.checkschedule.outputs.continue-to-run }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/checkschedule | |
id: checkschedule | |
do-more-work: | |
if: needs.check-schedule.outputs.continue-to-run == 'true' | |
needs: | |
- check-schedule | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run something | |
run: echo "Hello world" | |
print-value: | |
needs: | |
- check-schedule | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "continue-to-run = ${{ needs.check-schedule.outputs.continue-to-run }}" |