From 8f05dac6172c57763000e162a563ad1f134417d5 Mon Sep 17 00:00:00 2001 From: Lucas Dupont Date: Thu, 16 Apr 2026 14:54:12 +0000 Subject: [PATCH] feat: change workflow by using custom image --- .github/workflows/semantic-release.yml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index ba0554b..ead8ef7 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -9,9 +9,7 @@ on: jobs: release: - name: Release - runs-on: ubuntu-latest - + runs-on: ubuntu-custom steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 @@ -19,23 +17,6 @@ jobs: fetch-depth: 0 token: ${{ secrets.GH_TOKEN || github.token }} - - name: Setup semantic-release - uses: https://gitea.ldpt.fr/actions/semantic-release/setup-semrel@main - with: - node-version: "24" - - - name: Configure git remote with PAT - if: ${{ secrets.GH_TOKEN != '' }} - shell: bash - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - run: | - set -euo pipefail - REMOTE_URL=$(git remote get-url origin) - # Inject PAT so tag pushes come from the PAT user, not the Actions runner token - NEW_URL=$(echo "$REMOTE_URL" | sed "s|https://|https://oauth2:${GH_TOKEN}@|") - git remote set-url origin "$NEW_URL" - - name: Run semantic-release env: GITEA_TOKEN: ${{ secrets.GH_TOKEN || github.token }}