Skip to content

Small changes to get my hands wet #37

Small changes to get my hands wet

Small changes to get my hands wet #37

Workflow file for this run

name: 'Version Tag'
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [ created ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
do_version_tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: '.'
- name: Git describe
id: ghd
uses: proudust/gh-describe@v1
- run: git checkout main
- run: echo ${{ steps.ghd.outputs.describe }} > version.txt
- uses: EndBug/add-and-commit@v9
with:
message: 'Updated version.txt'
add: 'version.txt --force'