new-release #1466
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 | |
on: | |
repository_dispatch: | |
types: [new-release] | |
workflow_dispatch: | |
jobs: | |
bump: | |
name: Bump | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Bump to latest release | |
run: ./bump.sh | |
- name: Commit | |
run: | | |
VERSION=$(cat version) | |
git config user.name "KoLmafia Bot" | |
git config user.email "<>" | |
git add Casks/kolmafia.rb | |
git commit -m "Bump to r${VERSION}" | |
git tag $VERSION | |
git push origin main | |
git push --tags |