File tree Expand file tree Collapse file tree 3 files changed +13
-32
lines changed Expand file tree Collapse file tree 3 files changed +13
-32
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,24 @@ jobs:
11
11
e2e-default :
12
12
runs-on : ubuntu-latest
13
13
14
- permissions :
15
- contents : read
16
-
17
14
steps :
18
15
- name : Checkout repository
19
16
uses : actions/checkout@v4
20
17
21
18
- name : Test Run
22
19
id : test-run
23
20
uses : ./
24
- with :
25
- placeholder : " test_placeholder"
21
+
22
+ - name : Check repo after action
23
+ id : post-action
24
+ run : echo "result="$(ls -a)"" >> $GITHUB_OUTPUT
26
25
27
26
- name : Assert placeholder
28
27
uses : nick-fields/assert-action@v2
29
28
with :
30
- actual : ${{ steps.test-run.outputs.placeholder }}
31
- expected : " test_placeholder"
29
+ actual : ${{ steps.post-action.outputs.result }}
30
+ expected : " . .."
31
+
32
32
e2e :
33
33
runs-on : ubuntu-latest
34
34
if : always() && !cancelled()
Original file line number Diff line number Diff line change 3
3
[ ![ CI] ( https://github.com/datalens-tech/cleanup-folder-action/workflows/Check%20PR/badge.svg )] ( https://github.com/datalens-tech/cleanup-folder-action/actions?query=workflow%3A%22%22Check+PR%22%22 )
4
4
[ ![ GitHub Marketplace] ( https://img.shields.io/badge/Marketplace-cleanup-folder-action-blue.svg )] ( https://github.com/marketplace/actions/cleanup-folder-action )
5
5
6
- cleanup-folder- action
6
+ Action for delete data from action`s workdir
7
7
8
8
## Usage
9
9
@@ -12,26 +12,18 @@ cleanup-folder-action
12
12
``` yaml
13
13
jobs :
14
14
cleanup-folder-action :
15
- permissions :
16
- contents : read
17
-
18
15
steps :
19
16
- name : cleanup-folder-action
20
- id : cleanup-folder-action
21
17
uses : datalens-tech/cleanup-folder-action@v1
22
18
` ` `
23
19
24
20
### Action Inputs
25
21
26
- | Name | Description | Default |
27
- | ------------- | ------------ | ------- |
28
- | ` placeholder` | Placeholder. | |
22
+ None
29
23
30
24
### Action Outputs
31
25
32
- | Name | Description |
33
- | ------------- | ------------ |
34
- | `placeholder` | Placeholder. |
26
+ None
35
27
36
28
## Development
37
29
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
+ rm -rf ./* || true
11
+ rm -rf ./.??* || true
23
12
24
13
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding
25
14
branding :
You can’t perform that action at this time.
0 commit comments