Skip to content

Add DRY_RUN flag to workflow #113

Add DRY_RUN flag to workflow

Add DRY_RUN flag to workflow #113

Workflow file for this run

name: Bump Tag
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: bump tag
id: tag_version
uses: anothrNick/github-tag-action@1.37.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
DEFAULT_BUMP: patch
DRY_RUN: true
RELEASE_BRANCHES: main
- name: update tag with suffix
run: |
git tag -d ${{ steps.tag_version.outputs.new_tag }}
git tag ${{ steps.tag_version.outputs.new_tag }}-preview
git push origin ${{ steps.tag_version.outputs.new_tag }}-preview