From d2a1e02e892bb9b677050d2be8682ee2f76d1474 Mon Sep 17 00:00:00 2001 From: Antoine Azevedo Da Silva Date: Mon, 4 Sep 2023 16:36:08 +0200 Subject: [PATCH] chore: Update actions --- .github/workflows/create_release.yml | 4 ++++ .github/workflows/create_tag.yml | 8 +++++--- .github/workflows/deploy_prod.yml | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 7332e55..2f2c173 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -7,6 +7,9 @@ on: jobs: launch_release: runs-on: ubuntu-latest + permissions: + contents: write + discussions: write steps: - name: Checkout uses: actions/checkout@v3 @@ -22,3 +25,4 @@ jobs: with: generate_release_notes: true tag_name: ${{ steps.latest_tag.outputs.tag }} + name: ${{ steps.latest_tag.outputs.tag }} diff --git a/.github/workflows/create_tag.yml b/.github/workflows/create_tag.yml index 52b5a94..fbe1dce 100644 --- a/.github/workflows/create_tag.yml +++ b/.github/workflows/create_tag.yml @@ -13,14 +13,16 @@ jobs: - name: Checkout uses: actions/checkout@v2 env: - commitmsg: ${{ github.event.head_commit.message }} + COMMIT_MESSAGE: ${{ github.event.head_commit.message }} with: fetch-depth: 0 - name: Create or update major version uses: joutvhu/create-tag@v1 with: - tag_name: $commitmsg - message: $commitmsg + tag_name: ${{ env.COMMIT_MESSAGE }} + message: ${{ env.COMMIT_MESSAGE }} on_tag_exists: update env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Echo env + run: echo ${{ env.COMMIT_MESSAGE }} diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index 3dbb22d..e5464e9 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -23,7 +23,7 @@ jobs: uses: ./.github/workflows/create_release.yml secrets: inherit update_sera_app: - needs: deploy_release + needs: [build_server, build_webapp] uses: ./.github/workflows/install_sera.yml secrets: inherit notify: