proper boolean condition for tag creation

This commit is contained in:
teddy931130 2025-01-15 21:30:54 +02:00
parent ee95932f7a
commit 98725d330c

View file

@ -8,7 +8,6 @@ on:
description: "Create and push a new tag?" description: "Create and push a new tag?"
required: false required: false
type: boolean type: boolean
default: false
pull_request: pull_request:
branches: [master] branches: [master]
types: types:
@ -38,6 +37,12 @@ jobs:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref_name }} 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 - name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4 uses: aws-actions/configure-aws-credentials@v4
with: with:
@ -87,8 +92,8 @@ jobs:
docker push "${FULL_ECR_URL}:${NEW_TAG}" docker push "${FULL_ECR_URL}:${NEW_TAG}"
- name: Notify PR of New Tag - name: Create new tag and notify PR
if: ${{ inputs.create_tag }} == 'true' if: ${{ inputs.create_tag }}
run: | run: |
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"