Skip to content

Commit

Permalink
πŸ™ Updated dispatch workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ShafSpecs committed Jan 26, 2024
1 parent fd57849 commit e4a75b2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ jobs:
wait-and-trigger:
runs-on: ubuntu-latest
steps:
- name: Wait for 30 seconds
run: sleep 30
- name: Checkout code
uses: actions/checkout@v4

- name: Check for newer commits
- name: 5️⃣ Wait for 5 seconds
run: sleep 5

- name: πŸ”€ Check for newer commits
id: check-commits
run: |
LATEST_COMMIT=$(git log -1 --format='%H')
Expand All @@ -22,7 +25,7 @@ jobs:
echo "::set-output name=stop::true"
fi
- name: Trigger main workflow
- name: ⚑ Trigger main workflow
if: steps.check-commits.outputs.stop != 'true'
run: |
curl -X POST \
Expand Down

0 comments on commit e4a75b2

Please sign in to comment.