From 98725d330c63ca678c7ecb9a43fbe832a1fba4dd Mon Sep 17 00:00:00 2001 From: teddy931130 Date: Wed, 15 Jan 2025 21:30:54 +0200 Subject: [PATCH] proper boolean condition for tag creation --- .github/workflows/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 962cc2c571..e4d70ddaa8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,6 @@ on: description: "Create and push a new tag?" required: false type: boolean - default: false pull_request: branches: [master] types: @@ -38,6 +37,12 @@ jobs: fetch-depth: 0 ref: ${{ github.ref_name }} + ### NOT using dependency caches, since using GitHub-hosted runners. More info at the URL below: + ### https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#about-caching-workflow-dependencies + # - uses: actions/setup-go@v5 + # with: + # go-version-file: "go.mod" + - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -87,8 +92,8 @@ jobs: docker push "${FULL_ECR_URL}:${NEW_TAG}" - - name: Notify PR of New Tag - if: ${{ inputs.create_tag }} == 'true' + - name: Create new tag and notify PR + if: ${{ inputs.create_tag }} run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com"