Merge pull request #154 from chivalryq/fix/install #62
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: Auto Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
auto-release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Download auto | |
run: | | |
wget -O- https://github.com/intuit/auto/releases/download/v10.37.1/auto-linux.gz | gunzip > ~/auto | |
chmod a+x ~/auto | |
- name: Check whether a release is due | |
id: auto-version | |
run: | | |
version="$(~/auto version)" | |
echo "::set-output name=version::$version" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: auto release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ~/auto shipit -v |