Skip to content

Commit 2320ecc

Browse files
authored
feat: move action from datalens repos (#2)
1 parent ef2f469 commit 2320ecc

File tree

3 files changed

+13
-32
lines changed

3 files changed

+13
-32
lines changed

.github/workflows/e2e.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ jobs:
1111
e2e-default:
1212
runs-on: ubuntu-latest
1313

14-
permissions:
15-
contents: read
16-
1714
steps:
1815
- name: Checkout repository
1916
uses: actions/checkout@v4
2017

2118
- name: Test Run
2219
id: test-run
2320
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
2625

2726
- name: Assert placeholder
2827
uses: nick-fields/assert-action@v2
2928
with:
30-
actual: ${{ steps.test-run.outputs.placeholder }}
31-
expected: "test_placeholder"
29+
actual: ${{ steps.post-action.outputs.result }}
30+
expected: ". .."
31+
3232
e2e:
3333
runs-on: ubuntu-latest
3434
if: always() && !cancelled()

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![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)
44
[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-cleanup-folder-action-blue.svg)](https://github.com/marketplace/actions/cleanup-folder-action)
55

6-
cleanup-folder-action
6+
Action for delete data from action`s workdir
77

88
## Usage
99

@@ -12,26 +12,18 @@ cleanup-folder-action
1212
```yaml
1313
jobs:
1414
cleanup-folder-action:
15-
permissions:
16-
contents: read
17-
1815
steps:
1916
- name: cleanup-folder-action
20-
id: cleanup-folder-action
2117
uses: datalens-tech/cleanup-folder-action@v1
2218
```
2319
2420
### Action Inputs
2521
26-
| Name | Description | Default |
27-
| ------------- | ------------ | ------- |
28-
| `placeholder` | Placeholder. | |
22+
None
2923
3024
### Action Outputs
3125
32-
| Name | Description |
33-
| ------------- | ------------ |
34-
| `placeholder` | Placeholder. |
26+
None
3527
3628
## Development
3729

action.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
name: "cleanup-folder-action"
22
description: "cleanup-folder-action"
33

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-
154
runs:
165
using: "composite"
176
steps:
18-
- name: Placeholder
19-
id: placeholder
7+
- name: Cleanup build folder
208
shell: bash
219
run: |
22-
echo "::set-output name=placeholder::${{ inputs.placeholder }}"
10+
rm -rf ./* || true
11+
rm -rf ./.??* || true
2312
2413
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding
2514
branding:

0 commit comments

Comments
 (0)