diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 4dc8550..b29e1d0 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -11,9 +11,6 @@ jobs: e2e-default: runs-on: ubuntu-latest - permissions: - contents: read - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -21,14 +18,17 @@ jobs: - name: Test Run id: test-run uses: ./ - with: - placeholder: "test_placeholder" + + - name: Check repo after action + id: post-action + run: echo "result="$(ls -a)"" >> $GITHUB_OUTPUT - name: Assert placeholder uses: nick-fields/assert-action@v2 with: - actual: ${{ steps.test-run.outputs.placeholder }} - expected: "test_placeholder" + actual: ${{ steps.post-action.outputs.result }} + expected: ". .." + e2e: runs-on: ubuntu-latest if: always() && !cancelled() diff --git a/README.md b/README.md index 15382b0..bf3c791 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![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) [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-cleanup-folder-action-blue.svg)](https://github.com/marketplace/actions/cleanup-folder-action) -cleanup-folder-action +Action for delete data from action`s workdir ## Usage @@ -12,26 +12,18 @@ cleanup-folder-action ```yaml jobs: cleanup-folder-action: - permissions: - contents: read - steps: - name: cleanup-folder-action - id: cleanup-folder-action uses: datalens-tech/cleanup-folder-action@v1 ``` ### Action Inputs -| Name | Description | Default | -| ------------- | ------------ | ------- | -| `placeholder` | Placeholder. | | +None ### Action Outputs -| Name | Description | -| ------------- | ------------ | -| `placeholder` | Placeholder. | +None ## Development diff --git a/action.yaml b/action.yaml index feec3ec..b1ef158 100644 --- a/action.yaml +++ b/action.yaml @@ -1,25 +1,14 @@ 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 }}" + rm -rf ./* || true + rm -rf ./.??* || true # https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding branding: