mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
proper boolean condition for tag creation
This commit is contained in:
parent
ee95932f7a
commit
98725d330c
1 changed files with 8 additions and 3 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue