Skip to content

Commit

Permalink
feat: move action from datalens repos
Browse files Browse the repository at this point in the history
  • Loading branch information
flukolo4ek committed Oct 23, 2024
1 parent ef2f469 commit f46575e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 31 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,13 @@ jobs:
- name: Test Run
id: test-run
uses: ./
with:
placeholder: "test_placeholder"

- name: Check repo after action
id: post-action
run: echo "result=$(ls)" >> $GITHUB_OUTPUT

- name: Assert placeholder
uses: nick-fields/assert-action@v2
with:
actual: ${{ steps.test-run.outputs.placeholder }}
expected: "test_placeholder"
e2e:
runs-on: ubuntu-latest
if: always() && !cancelled()

needs:
- e2e-default

steps:
- name: Collect Results
uses: ovsds/collect-needs-result-action@v1
with:
needs_json: ${{ toJson(needs) }}
skip_allowed: false
actual: ${{ steps.post-action.outputs.result }}
expected: ""
21 changes: 7 additions & 14 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
name: "cleanup-folder-action"
description: "cleanup-folder-action"

inputs:
placeholder:
description: "Placeholder input to be replaced by real inputs"
required: true
default: "placeholder"

outputs:
placeholder:
description: "Placeholder output to be replaced by real outputs"
value: ${{steps.placeholder.outputs.placeholder }}

runs:
using: "composite"
steps:
- name: Placeholder
id: placeholder
- name: Cleanup build folder
shell: bash
run: |
echo "::set-output name=placeholder::${{ inputs.placeholder }}"
pwd
ls
rm -rf ./* || true
rm -rf ./.??* || true
pwd
ls
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding
branding:
Expand Down

0 comments on commit f46575e

Please sign in to comment.