File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : src-mirror
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ git-ref :
7
+ description : ' Branch, tag or SHA to checkout'
8
+ required : true
9
+ default : ' main'
10
+ push :
11
+ tags :
12
+ - ' *'
13
+ pull_request :
14
+ types :
15
+ - opened
16
+ - synchronize
17
+ paths :
18
+ - .github/workflows/src-mirror.yml
19
+
20
+ concurrency :
21
+ group : src-mirror-${{ github.ref }}
22
+ cancel-in-progress : true
23
+
24
+ # Tar entire project west workspace, prune, and upload to artifact service.
25
+ jobs :
26
+ standard :
27
+ runs-on :
28
+ - runs-on=${{ github.run_id }}
29
+ - runner=16cpu-linux-x64
30
+ steps :
31
+ - name : Upload src.tar.gz
32
+ uses : nrfconnect/action-src-mirror@main
33
+ with :
34
+ path : ' ncs-example-application'
35
+ west-update-args : ' '
36
+ artifactory-path : >-
37
+ ${{ (github.ref_type != 'tag') &&
38
+ format('ncs-src-mirror/internal/{0}/{1}/src.tar.gz', github.event.repository.name, github.ref_name) ||
39
+ format('ncs-src-mirror/external/{0}/{1}/src.tar.gz', github.event.repository.name, github.ref_name) }}
40
+ artifactory-user : ${{ secrets.COM_NORDICSEMI_FILES_USERNAME }}
41
+ artifactory-pass : ${{ secrets.COM_NORDICSEMI_FILES_PASSWORD }}
You can’t perform that action at this time.
0 commit comments