File tree Expand file tree Collapse file tree 5 files changed +32
-49
lines changed
Expand file tree Collapse file tree 5 files changed +32
-49
lines changed Original file line number Diff line number Diff line change 11name : Test example negative
22on :
3- # # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
4- # #
5- # # Added pull_request to register workflow from the PR.
6- # # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
7- # pull_request: {}
8- workflow_dispatch : {}
9-
3+ # # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
4+ # #
5+ # # Added pull_request to register workflow from the PR.
6+ # # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
7+ # pull_request: {}
8+ workflow_dispatch :
9+ inputs :
10+ ref :
11+ description : The fully-formed ref of the branch or tag that triggered the workflow run
12+ required : false
13+ type : string
14+ sha :
15+ description : The sha of the commit that triggered the workflow run
16+ required : false
17+ type : string
1018jobs :
1119 setup :
1220 runs-on : ubuntu-latest
1321 steps :
1422 - name : Setup
1523 run : echo "Do setup"
16-
1724 test :
1825 runs-on : ubuntu-latest
1926 needs : [setup]
2027 continue-on-error : true
2128 steps :
2229 - name : Checkout
2330 uses : actions/checkout@v4
24-
2531 - uses : ./
2632 id : current
2733 with :
2834 sha : ${{ github.sha }}
29-
3035 outputs :
3136 result : " false"
32-
3337 assert :
3438 runs-on : ubuntu-latest
3539 needs : [test]
3842 with :
3943 expected : ' false'
4044 actual : " ${{ needs.test.outputs.result }}"
41-
4245 teardown :
4346 runs-on : ubuntu-latest
4447 needs : [assert]
Original file line number Diff line number Diff line change 11name : Test example positive
22on :
3- # # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
4- # #
5- # # Added pull_request to register workflow from the PR.
6- # # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
7- # pull_request: {}
8- workflow_dispatch : {}
9-
3+ # # Uncomment when test added first time to register workflow and comment it back after workflow would be registered
4+ # #
5+ # # Added pull_request to register workflow from the PR.
6+ # # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
7+ # pull_request: {}
8+ workflow_dispatch :
9+ inputs :
10+ ref :
11+ description : The fully-formed ref of the branch or tag that triggered the workflow run
12+ required : false
13+ type : string
14+ sha :
15+ description : The sha of the commit that triggered the workflow run
16+ required : false
17+ type : string
1018jobs :
1119 setup :
1220 runs-on : ubuntu-latest
1321 steps :
1422 - name : Setup
1523 run : echo "Do setup"
16-
1724 test :
1825 runs-on : ubuntu-latest
1926 continue-on-error : true
2027 needs : [setup]
2128 steps :
2229 - name : Checkout
2330 uses : actions/checkout@v4
24-
2531 - uses : ./
2632 id : current
2733 with :
2834 sha : ${{ github.sha }}
29-
3035 outputs :
3136 result : " true"
32-
3337 assert :
3438 runs-on : ubuntu-latest
3539 needs : [test]
3842 with :
3943 expected : ' true'
4044 actual : " ${{ needs.test.outputs.result }}"
41-
4245 teardown :
4346 runs-on : ubuntu-latest
4447 needs : [assert]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import :
2+ - https://raw.githubusercontent.com/cloudposse/.github/refs/heads/main/.github/atmos/github-action.yaml
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments