Simple GitHub Action to write VERSION.txt and include it in each release.
Note this pushes a new commit to the release branch and force updates the release tag in GitHub (so that the tagged commit contains the new VERSION.txt).
name: Release
on:
release:
types: [published]
branches: [main]
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: BattlesnakeOfficial/action-release-version@v1