From c196f626bb5896ac1e59de98dc76fee742b3dd7c Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Tue, 17 Mar 2026 23:31:05 -0500 Subject: [PATCH] ci: update for directus release --- .gitea/workflows/release-image.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/release-image.yaml b/.gitea/workflows/release-image.yaml index f37d657..58e251d 100644 --- a/.gitea/workflows/release-image.yaml +++ b/.gitea/workflows/release-image.yaml @@ -5,8 +5,12 @@ on: branches: - release - repository_dispatch: - types: [directus_update] + workflow_dispatch: + inputs: + directus-release: + description: 'A parameter passed via API' + required: true + default: 'true' jobs: build: @@ -36,7 +40,7 @@ jobs: path: | .astro node_modules/.vite - key: ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}-${{ github.event_name == 'repository_dispatch' && github.run_id || 'static' }} + key: ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || 'static' }} restore-keys: | ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}- ${{ runner.os }}-astro- @@ -103,8 +107,8 @@ jobs: needs: [ build, guarddog ] runs-on: ubuntu-js if: | - github.event_name != 'repository_dispatch' || - github.event.client_payload.data.published == true + github.event_name != 'workflow_dispatch' || + inputs['directus-release'] == 'true' outputs: new-release-published: ${{ steps.semantic.outputs.new-release-published }} new-release-version: ${{ steps.semantic.outputs.new-release-version }} @@ -117,7 +121,7 @@ jobs: token: ${{ secrets.BOT_TOKEN }} - name: Prepare Content Patch - if: github.event_name == 'repository_dispatch' + if: github.event_name == 'workflow_dispatch' run: | git config user.name "gitea-bot" git config user.email "gitea-bot@alexlebens.net" @@ -244,7 +248,7 @@ jobs: tags: action,failed details: 'Harbor Image for Site Profile has failed to be released.' icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png' - actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=release-image.yml", "clear": true}]' + actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=release-image.yaml", "clear": true}]' image: true release-gitea: