Skip to content

Commit 864f140

Browse files
committed
feat: move action from datalens repos
1 parent e6faae4 commit 864f140

File tree

2 files changed

+13
-31
lines changed

2 files changed

+13
-31
lines changed

.github/workflows/e2e.yaml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,13 @@ jobs:
2121
- name: Test Run
2222
id: test-run
2323
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
2628

2729
- name: Assert placeholder
2830
uses: nick-fields/assert-action@v2
2931
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: ""

action.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
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+
pwd
11+
ls
12+
rm -rf ./* || true
13+
rm -rf ./.??* || true
14+
pwd
15+
ls
2316
2417
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding
2518
branding:

0 commit comments

Comments
 (0)