update README.md #5
This file contains hidden or 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
name: Deploy | |
on: [push] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
# Only run one job a time to avoid conflicts | |
concurrency: ci-${{ github.ref }} | |
# This permission may be required to grant access for the Action to push tags | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Increment version | |
id: increment-version | |
uses: RichardInnocent/semantic-versioning-git@v0.0.1 | |
# Everything below here shows how you might use the results of the action... | |
- name: Print if version changed | |
if: steps.increment-version.outputs.previous-version != steps.increment-version.outputs.new-version | |
run: echo "The new version is now $new_version" | |
env: | |
new_version: ${{ steps.increment-version.outputs.new-version }} | |
# See more | |
# https://github.com/marketplace/actions/semantic-versioning-git |