forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtest.yml
More file actions
40 lines (31 loc) · 862 Bytes
/
test.yml
File metadata and controls
40 lines (31 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on: push
jobs:
job1:
runs-on: ubuntu-latest
outputs:
job_output: ${{ steps.step.outputs.value }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: source
uses: tj-actions/changed-files@v40
- name: Remove foo from changed files
id: step
uses: mad9000/actions-find-and-replace-string@3
with:
source: ${{ steps.source.outputs.all_changed_files }}
find: "foo"
replace: ""
- id: simplesink1
run: echo ${{ steps.source.outputs.all_changed_files }}
- id: simplesink2
run: ${{ github.event.pull_request.head.ref }}
job2:
runs-on: ubuntu-latest
if: ${{ always() }}
needs: job1
steps:
- id: sink
run: echo ${{needs.job1.outputs.job_output}}