This commit is contained in:
@@ -19,18 +19,22 @@ inputs:
|
||||
checkout:
|
||||
description: 'checkout repo first'
|
||||
default: 'true'
|
||||
tag:
|
||||
description: 'checkout repo first'
|
||||
default: 'true'
|
||||
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
if: ${{ github.event.inputs.foo == 'true' }}
|
||||
if: ${{ inputs.checkout == 'true' }}
|
||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
- name: Bump version and push tag
|
||||
id: tag
|
||||
if: ${{ inputs.tag == 'true' }}
|
||||
uses: phadric/github-tag-action@a5250a59655e9f4b0350407380a92c73948f2aec # master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
|
||||
|
||||
Reference in New Issue
Block a user