-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove race condition between restart repo-policy-compliance and requ…
…est of the service (#166)
- Loading branch information
Showing
13 changed files
with
272 additions
and
48 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Workflow Dispatch Wait Tests | ||
|
||
on: | ||
# Manually dispatched workflow action | ||
workflow_dispatch: | ||
inputs: | ||
runner: | ||
description: 'Self hosted gh runner' | ||
required: true | ||
minutes: | ||
description: 'Number of minutes to wait' | ||
# Number type not supported in workflow dispatch: https://github.com/orgs/community/discussions/67182 | ||
# Seems to be by design: https://github.blog/changelog/2021-11-10-github-actions-input-types-for-manual-workflows/ | ||
default: '2' | ||
|
||
jobs: | ||
workflow-dispatch-tests: | ||
runs-on: [self-hosted, linux, x64, "${{ inputs.runner }}"] | ||
steps: | ||
- name: Echo input variable and message | ||
run: | | ||
echo "Hello, runner: ${{ inputs.runner }}" | ||
- name: Wait | ||
run: | | ||
sleep ${{ inputs.minutes }}m | ||
- name: Always echo a message | ||
if: always() | ||
run: echo "Should not echo if pre-job script failed" |
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
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
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
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
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
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
Oops, something went wrong.