mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
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:
co-authored by
charlesgauthereau
parent
d7e2ec3b08
commit
8fbe639aa1
@@ -12,7 +12,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
outputs:
|
||||||
|
draft_tag: ${{ steps.release_step.outputs.draft_tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@v1
|
- uses: actions/create-github-app-token@v1
|
||||||
id: app-token
|
id: app-token
|
||||||
@@ -62,4 +63,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Log draft release tag
|
- name: Log draft release tag
|
||||||
run: |
|
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
|
||||||
@@ -11,6 +11,24 @@ permissions:
|
|||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
jobs:
|
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:
|
docker_publish:
|
||||||
uses: ./.github/workflows/docker.yml
|
uses: ./.github/workflows/docker.yml
|
||||||
with:
|
with:
|
||||||
@@ -22,16 +40,16 @@ jobs:
|
|||||||
needs: docker_publish
|
needs: docker_publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Publish GitHub Release
|
- name: Publish GitHub Release
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
gh release edit v${{ github.ref_name }} --draft=false
|
gh release edit v${{ github.ref_name }} --draft=false
|
||||||
|
|
||||||
discord_notification:
|
discord_notification:
|
||||||
needs: docker_publish
|
needs: docker_publish
|
||||||
|
|||||||
Reference in New Issue
Block a user