No description
- JSON 76.9%
- TypeScript 23.1%
| .flox | ||
| .husky | ||
| dist | ||
| src | ||
| .env.example | ||
| .envrc | ||
| .gitignore | ||
| action.yaml | ||
| biome.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| rollup.config.ts | ||
| tsconfig.json | ||
Delete Release If Exists
A Forgejo Action that deletes a release by name if it exists. Useful for cleaning up pre-releases before recreating them in CI pipelines.
Usage
- uses: actions/delete-release-if-exists@v1
with:
token: ${{ secrets.FORGEJO_TOKEN }}
name: nightly
Inputs
| Input | Description | Required | Default |
|---|---|---|---|
token |
Forgejo API token | Yes | — |
name |
Name of the release to delete | Yes | — |
dry_run |
If true, list matching releases without deleting them |
No | false |
Example workflow
name: Nightly release
on:
schedule:
- cron: '0 2 * * *'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Delete old releases
uses: https://git.deditoolbox.fr/actions/delete-release-if-exists@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ needs.versioning.outputs.version }}
dry_run: false
- name: Create new nightly release
# ...
Development
Prerequisites
Install dependencies
pnpm install
Build
pnpm package
Local testing
Copy .env.example to .env, fill in the required values, then run:
pnpm local
This uses @github/local-action to simulate a workflow run locally.