Commit 83a5e2f 1 parent 3f464af commit 83a5e2f Copy full SHA for 83a5e2f
File tree 2 files changed +65
-0
lines changed
2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Upload Artifacts
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - kw/ci-release-workflow-revamp
7
+ workflow_dispatch :
8
+ pull_request :
9
+
10
+ jobs :
11
+ upload :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v4
17
+ with :
18
+ ref : kw/ci-release-workflow-revamp
19
+
20
+ - name : Create example.txt
21
+ run : echo "This is an example file." > example.txt
22
+
23
+ - name : Upload artifact
24
+ uses : actions/upload-artifact@v3
25
+ with :
26
+ name : example-artifact
27
+ path : example.txt
28
+
29
+ - name : Dispatch to test workflow
30
+ uses : benc-uk/workflow-dispatch@v1
31
+ with :
32
+ workflow : download-and-test.yml
33
+ ref : kw/ci-release-workflow-revamp
34
+ inputs : ' {"run_id": "${{ github.run_id }}"}'
35
+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Download and Process
2
+
3
+ on :
4
+ pull_request :
5
+ workflow_dispatch :
6
+ inputs :
7
+ run_id :
8
+ description : ' The run ID of the triggering workflow'
9
+ required : true
10
+ type : string
11
+
12
+ jobs :
13
+ test :
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
19
+ with :
20
+ ref : kw/ci-release-workflow-revamp
21
+
22
+ - name : Download artifact
23
+ uses : actions/download-artifact@v4
24
+ with :
25
+ name : example-artifact
26
+ path : example.txt
27
+ run-id : ${{ github.event.inputs.run_id }}
28
+
29
+ - name : Display file content
30
+ run : cat example.txt
You can’t perform that action at this time.
0 commit comments