Skip to content

Make it possible to start the first polling immediately #4

Make it possible to start the first polling immediately

Make it possible to start the first polling immediately #4

name: GH-994 - Start Immediately
on:
push:
paths:
- '**GH-994**'
- 'action.yml'
- 'dist/**'
pull_request:
paths:
- '**GH-994**'
- 'action.yml'
- 'dist/**'
# Disable all permissions in workflow global as to setup clean room
# However PRs will have read permissions because this project is on a public repository
permissions: {}
jobs:
echo:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Print note
run: |
echo 'Triggered by ${{ github.event_name }} event'
wait:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- run: |
echo 'Triggered by ${{ github.event_name }} event'
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: ./
with:
wait-seconds-before-first-polling: 0 # This is the only value for testing in this file. So might be merged with other CIs
retry-method: 'equal_intervals'
min-interval-seconds: 5
attempt-limits: 30
skip-same-workflow: 'false'
wait-list: |
[
{
"workflowFile": "GH-994-start_immediately.yml",
"jobName": "echo",
"eventName": "${{ github.event_name }}"
}
]