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: