File tree Expand file tree Collapse file tree 2 files changed +13
-31
lines changed Expand file tree Collapse file tree 2 files changed +13
-31
lines changed Original file line number Diff line number Diff line change @@ -21,24 +21,13 @@ jobs:
21
21
- name : Test Run
22
22
id : test-run
23
23
uses : ./
24
- with :
25
- placeholder : " test_placeholder"
24
+
25
+ - name : Check repo after action
26
+ id : post-action
27
+ run : echo "result=$(ls)" >> $GITHUB_OUTPUT
26
28
27
29
- name : Assert placeholder
28
30
uses : nick-fields/assert-action@v2
29
31
with :
30
- actual : ${{ steps.test-run.outputs.placeholder }}
31
- expected : " test_placeholder"
32
- e2e :
33
- runs-on : ubuntu-latest
34
- if : always() && !cancelled()
35
-
36
- needs :
37
- - e2e-default
38
-
39
- steps :
40
- - name : Collect Results
41
- uses : ovsds/collect-needs-result-action@v1
42
- with :
43
- needs_json : ${{ toJson(needs) }}
44
- skip_allowed : false
32
+ actual : ${{ steps.post-action.outputs.result }}
33
+ expected : " "
Original file line number Diff line number Diff line change 1
1
name : " cleanup-folder-action"
2
2
description : " cleanup-folder-action"
3
3
4
- inputs :
5
- placeholder :
6
- description : " Placeholder input to be replaced by real inputs"
7
- required : true
8
- default : " placeholder"
9
-
10
- outputs :
11
- placeholder :
12
- description : " Placeholder output to be replaced by real outputs"
13
- value : ${{steps.placeholder.outputs.placeholder }}
14
-
15
4
runs :
16
5
using : " composite"
17
6
steps :
18
- - name : Placeholder
19
- id : placeholder
7
+ - name : Cleanup build folder
20
8
shell : bash
21
9
run : |
22
- echo "::set-output name=placeholder::${{ inputs.placeholder }}"
10
+ pwd
11
+ ls
12
+ rm -rf ./* || true
13
+ rm -rf ./.??* || true
14
+ pwd
15
+ ls
23
16
24
17
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding
25
18
branding :
You can’t perform that action at this time.
0 commit comments