From e1e137741df0477238b857dc3152ca46ae3a759b Mon Sep 17 00:00:00 2001 From: Antoine Azevedo Da Silva Date: Mon, 4 Sep 2023 17:00:08 +0200 Subject: [PATCH] chore: update action --- .github/workflows/build_server_image.yml | 3 +++ .github/workflows/build_web_image.yml | 3 +++ .github/workflows/create_release.yml | 1 + .github/workflows/create_tag.yml | 12 +++++++----- .github/workflows/install_sera.yml | 1 + 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_server_image.yml b/.github/workflows/build_server_image.yml index 55c5458..08525ce 100644 --- a/.github/workflows/build_server_image.yml +++ b/.github/workflows/build_server_image.yml @@ -13,6 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + with: + ref: prod + fetch-depth: 0 - name: Get Latest Tag id: latest_tag uses: WyriHaximus/github-action-get-previous-tag@v1 diff --git a/.github/workflows/build_web_image.yml b/.github/workflows/build_web_image.yml index dd04193..a1b2f24 100644 --- a/.github/workflows/build_web_image.yml +++ b/.github/workflows/build_web_image.yml @@ -13,6 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + with: + ref: prod + fetch-depth: 0 - name: Get Latest Tag id: latest_tag uses: WyriHaximus/github-action-get-previous-tag@v1 diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 2f2c173..d879618 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -14,6 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: + ref: prod fetch-depth: 0 - name: Get Latest Tag id: latest_tag diff --git a/.github/workflows/create_tag.yml b/.github/workflows/create_tag.yml index b4b6833..1102baa 100644 --- a/.github/workflows/create_tag.yml +++ b/.github/workflows/create_tag.yml @@ -12,17 +12,19 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - env: - COMMIT_MESSAGE: ${{ github.event.head_commit.message }} with: + ref: prod fetch-depth: 0 + - name: Get last commit message + id: commit_message + run: echo "::set-output name=message::$(git log -1 --pretty=format:'%s')" - name: Echo env - run: echo ${{ env.COMMIT_MESSAGE }} + run: echo ${{ steps.commit_message.outputs.message }} - name: Create or update major version uses: joutvhu/create-tag@v1 with: - tag_name: ${{ env.COMMIT_MESSAGE }} - message: ${{ env.COMMIT_MESSAGE }} + tag_name: ${{ steps.commit_message.outputs.message }} + message: ${{ steps.commit_message.outputs.message }} on_tag_exists: update env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/install_sera.yml b/.github/workflows/install_sera.yml index 80ee724..51b7eac 100644 --- a/.github/workflows/install_sera.yml +++ b/.github/workflows/install_sera.yml @@ -14,6 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: + ref: prod fetch-depth: 0 - name: Set env vars