Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diplodoc-platform/docs-clean-action
https://github.com/diplodoc-platform/docs-clean-action
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/diplodoc-platform/docs-clean-action
- Owner: diplodoc-platform
- Created: 2023-07-20T00:38:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-30T22:11:17.000Z (11 months ago)
- Last Synced: 2024-10-11T04:05:21.383Z (3 months ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# docs-clean-action GitHub action
## Inputs
- `revision` (required) - The revision or version identifier to be deleted from S3.
- `project-name` (required) - The documentation's project name, as specified in the configuration file's field with the corresponding name.
- `storage-bucket` (required) - The name of the S3 bucket where the documentation is stored.
- `storage-endpoint` (required) - The endpoint URL of the S3 service.
- `storage-access-key-id` (required) - The access key ID associated with the account that has permission to access and upload to the specified S3 bucket.
- `storage-secret-access-key` (required) - The secret access key associated with the account.
- `storage-region` (required) - The region where the specified S3 bucket is located.
- `shared-storage-bucket` (default: `false`) - Flag whether the bucket is shared across multiple projects.## Example
```yaml
name: Remove PR revisionon:
pull_request:
types:
- closedjobs:
remove-pr-rev:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clean
uses: diplodoc-platform/docs-clean-action@v1
with:
revision: "pr-${{ github.event.pull_request.number }}"
project-name: ${{ secrets.DIPLODOC_PROJECT_NAME }}
storage-bucket: ${{ secrets.DIPLODOC_STORAGE_BUCKET }}
storage-endpoint: ${{ vars.DIPLODOC_STORAGE_ENDPOINT }}
storage-access-key-id: ${{ secrets.DIPLODOC_ACCESS_KEY_ID }}
storage-secret-access-key: ${{ secrets.DIPLODOC_SECRET_ACCESS_KEY }}
storage-region: ${{ vars.DIPLODOC_STORAGE_REGION }}
```