fix: workflow

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
This commit is contained in:
Charles GTE
2026-03-06 11:45:11 +01:00
committed by GitHub
co-authored by charlesgauthereau
parent d7e2ec3b08
commit 8fbe639aa1
2 changed files with 39 additions and 11 deletions
+12 -2
View File
@@ -12,7 +12,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
draft_tag: ${{ steps.release_step.outputs.draft_tag }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
@@ -62,4 +63,13 @@ jobs:
- name: Log draft release tag
run: |
echo "The temporary draft release tag is: ${{ steps.release_step.outputs.draft_tag }}"
echo "The temporary draft release tag is: ${{ steps.release_step.outputs.draft_tag }}"
- name: Write draft tag to file
run: echo "${{ steps.release_step.outputs.draft_tag }}" > draft_tag.txt
- name: Save draft tag artifact
uses: actions/upload-artifact@v3
with:
name: draft_tag
path: draft_tag.txt
+27 -9
View File
@@ -11,6 +11,24 @@ permissions:
packages: write
jobs:
log-draft-tag:
runs-on: ubuntu-latest
steps:
- name: Download draft tag artifact
uses: actions/download-artifact@v3
with:
name: draft_tag
path: .
- name: Read draft tag
id: draft
run: |
DRAFT_TAG=$(cat draft_tag.txt)
echo $DRAFT_TAG
echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT
docker_publish:
uses: ./.github/workflows/docker.yml
with:
@@ -22,16 +40,16 @@ jobs:
needs: docker_publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Publish GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release edit v${{ github.ref_name }} --draft=false
- name: Publish GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release edit v${{ github.ref_name }} --draft=false
discord_notification:
needs: docker_publish