File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Check advisories standalone
2
+ on :
3
+ - push
4
+ - pull_request
5
+ jobs :
6
+ tools_changed :
7
+ continue-on-error : true
8
+ runs-on : ubuntu-22.04
9
+ outputs :
10
+ should_skip : ${{ steps.skip_check.outputs.should_skip }}
11
+ steps :
12
+ - id : skip_check
13
+ uses : fkirc/skip-duplicate-actions@master
14
+ with :
15
+ concurrent_skipping : " never"
16
+ skip_after_successful_duplicate : " true"
17
+ paths : ' ["code/**"]'
18
+ advisories_changed :
19
+ continue-on-error : true
20
+ runs-on : ubuntu-22.04
21
+ outputs :
22
+ should_skip : ${{ steps.skip_check.outputs.should_skip }}
23
+ steps :
24
+ - id : skip_check
25
+ uses : fkirc/skip-duplicate-actions@master
26
+ with :
27
+ concurrent_skipping : " never"
28
+ skip_after_successful_duplicate : " true"
29
+ paths : ' ["advisories/**"]'
30
+ do_not_skip : ' ["push", "workflow_dispatch", "schedule"]'
31
+ check-advisories :
32
+ name : Invoke check-advisories workflow
33
+ needs : [tools_changed, advisories_changed]
34
+ if : ${{ needs.tools_changed.outputs.should_skip == 'true' && needs.advisories_changed.outputs.should_skip != 'true' }}
35
+ uses : ./.github/workflows/check-advisories.yml
36
+ with :
37
+ artifact-name : hsec-tools-main
Original file line number Diff line number Diff line change 34
34
flake-lock-path : ./code/hsec-tools/flake.lock
35
35
- run : nix -L build
36
36
working-directory : ./code/hsec-tools
37
+ - run : mkdir -p ~/.local/bin
38
+ - run : cp code/hsec-tools/result/bin/hsec-tools ~/.local/bin
37
39
- uses : actions/upload-artifact@v3
38
40
if : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
39
41
with :
40
42
name : hsec-tools-main
41
- path : code/hsec-tools/result/ bin/hsec-tools
43
+ path : ~/.local/ bin
You can’t perform that action at this time.
0 commit comments