File tree Expand file tree Collapse file tree 5 files changed +8583
-8560
lines changed Expand file tree Collapse file tree 5 files changed +8583
-8560
lines changed Original file line number Diff line number Diff line change 3
3
circleci_artifacts_redirector_job :
4
4
runs-on : ubuntu-latest
5
5
name : Run CircleCI artifacts redirector
6
+ outputs :
7
+ url : ${{ steps.run-circleci-artifacts-redirector.outputs.url }}
6
8
steps :
7
9
# WARNING!
8
10
# This repo uses the action in its own root directory.
16
18
repo-token : ${{ secrets.GITHUB_TOKEN }}
17
19
artifact-path : 0/test_artifacts/root_artifact.md
18
20
id : run-circleci-artifacts-redirector
21
+
22
+ use_outputs_job :
23
+ runs-on : ubuntu-latest
24
+ needs : [circleci_artifacts_redirector_job]
25
+ name : Use the output
26
+ steps :
27
+ - name : Checkout repo
28
+ uses : actions/checkout@master
29
+ - name : Check the URL
30
+ run : |
31
+ curl --fail ${{ needs.circleci_artifacts_redirector_job.outputs.url }} | grep $GITHUB_SHA
Original file line number Diff line number Diff line change @@ -14,11 +14,16 @@ jobs:
14
14
name : Run CircleCI artifacts redirector
15
15
steps :
16
16
- name : GitHub Action step
17
+ id : step1
17
18
uses : larsoner/circleci-artifacts-redirector-action@master
18
19
with :
19
20
repo-token : ${{ secrets.GITHUB_TOKEN }}
20
21
artifact-path : 0/test_artifacts/root_artifact.md
21
22
circleci-jobs : build_doc
23
+ - name : Check the URL
24
+ run : |
25
+ curl --fail ${{ steps.step1.outputs.url }} | grep $GITHUB_SHA
26
+
22
27
` ` `
23
28
24
29
- The ` artifact-path` should point to an artifact path from your CircleCI
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ inputs:
14
14
circleci-jobs :
15
15
description : ' Comma-separated list of CircleCI jobs to monitor (default is "build_docs,build,doc")'
16
16
required : false
17
+ outputs :
18
+ url :
19
+ description : ' The full redirect URL'
17
20
on : status
18
21
runs :
19
22
using : ' node12'
You can’t perform that action at this time.
0 commit comments