Remove dummy test code #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uses action: https://github.com/marketplace/actions/github-tag-bump | |
name: GitHubTagBump-UsesTag | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Calculate the version | |
id: dryRunVersion | |
uses: anothrNick/github-tag-action@1.67.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
DEFAULT_BUMP: patch | |
# Set prerelease to true if not pushing to the default branch. | |
PRERELEASE: ${{ github.event_name != 'push' || github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} | |
DRY_RUN: true | |
- name: Display the version | |
run: | | |
echo Version: ${{ steps.dryRunVersion.outputs.new_tag }} | |
- name: Set the new version tag | |
id: version | |
# Only run this step if we are doing a push (not a PR) to the default branch (e.g. main). | |
if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) | |
uses: anothrNick/github-tag-action@1.67.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
DEFAULT_BUMP: patch |