#major Why the fuk am I writing table/array size when we will never g… #20
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
name: Bump version | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: Bump version and push tag | |
id: tag | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: false | |
DEFAULT_BUMP: "patch" | |
RELEASE_BRANCHES: "master,main,dev" | |
# Update the version file locally | |
- name: Update version file | |
if: steps.tag.outputs.new_tag != '' | |
run: sed -i 's/VERSION = "[^"]*"/VERSION = "${{ steps.tag.outputs.new_tag }}"/' sfs.lua | |
# Get the commit message | |
- name: Extract Commit Message | |
id: extract_commit_message | |
run: | | |
echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)" >> $GITHUB_ENV | |
# Create a release with the updated file and commit message as release notes | |
- name: Create GitHub Release | |
if: steps.tag.outputs.new_tag != '' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release create "${{ steps.tag.outputs.new_tag }}" \ | |
--title "Release ${{ steps.tag.outputs.new_tag }}" \ | |
--notes "$COMMIT_MESSAGE" \ | |
sfs.lua |