No description
  • JSON 76.9%
  • TypeScript 23.1%
Find a file
2026-06-07 23:52:18 +02:00
.flox 📝 Add README 2026-04-20 12:17:07 +02:00
.husky 🎉 Initial commit 2026-02-03 15:58:04 +01:00
dist ️ Improvements 2026-04-20 13:26:55 +02:00
src ️ Improvements 2026-04-20 13:26:55 +02:00
.env.example 🧑‍💻 Add script to run locally 2026-02-03 17:17:12 +01:00
.envrc 🎉 Initial commit 2026-02-03 15:58:04 +01:00
.gitignore 🧑‍💻 Add flox 2026-02-04 10:51:45 +01:00
action.yaml ️ Improvements 2026-04-20 13:26:55 +02:00
biome.json 🔧 Fix biome config 2026-02-04 10:39:04 +01:00
package.json ️ Improvements 2026-04-20 13:26:55 +02:00
pnpm-lock.yaml 🔧 Fix action build 2026-02-03 16:32:56 +01:00
README.md 🛂 Adapt repo names 2026-06-07 23:52:18 +02:00
rollup.config.ts 🔧 Fix action build 2026-02-03 16:32:56 +01:00
tsconfig.json 🔧 Fix action build 2026-02-03 16:32:56 +01:00

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.