Test Stuff #4
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: Test Stuff | |
on: workflow_dispatch | |
defaults: | |
run: | |
# necessary for windows | |
shell: bash | |
jobs: | |
update-installer-latest-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
name: Fetch entire history (for conventional commits) | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config --global user.name GitHub Actions | |
git config user.email [email protected] | |
- name: Install Knope | |
uses: knope-dev/[email protected] | |
with: | |
version: 0.18.0 | |
- name: Update Installer version | |
run: | | |
VERSION=$(knope get-version) | |
sed -i "s/PACKAGE_VERSION=\"v[0-9]*\.[0-9]*\.[0-9]*\"/PACKAGE_VERSION=\"v$VERSION\"/" installers/nix/install.sh | |
git add . | |
git commit -m "Update installer version to v$VERSION" | |
git push |