generated from AdobeDocs/dev-site-documentation-template
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add demo workflow for testing ghar
see IOXTD-3095
- Loading branch information
1 parent
8802ce9
commit d3a8395
Showing
1 changed file
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Demo | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
name: | ||
description: 'Person or thing to greet' | ||
default: 'world' | ||
required: true | ||
type: string | ||
pause: | ||
description: 'Pause workflow run for 5m after printing greeting' | ||
default: false | ||
required: false | ||
type: boolean | ||
runners: | ||
description: 'Runners on which to execute workflow' | ||
required: true | ||
default: 'arc-dev-runners' | ||
type: choice | ||
options: | ||
- ubuntu-latest | ||
- developer-website-arc-dev-runners-adcce | ||
|
||
jobs: | ||
greet-on-ubuntu-latest: | ||
if: inputs.runners == 'ubuntu-latest' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print greeting | ||
run: echo "Hello ${{ inputs.name }} from ${{ inputs.runners }}!" | ||
|
||
- name: Sleep for 5m | ||
if: inputs.pause == true | ||
run: sleep 300 | ||
|
||
greet-on-developer-website-arc-dev-runners-adcce: | ||
if: inputs.runners == 'developer-website-arc-dev-runners-adcce' | ||
runs-on: developer-website-arc-dev-runners-adcce | ||
group: adp-platform-operations | ||
labels: arc-dev-runners-corp | ||
steps: | ||
- name: Print greeting | ||
run: echo "Hello ${{ inputs.name }} from ${{ inputs.runners }}!" | ||
|
||
- name: Sleep for 5m | ||
if: inputs.pause == true | ||
run: sleep 300 |