auto shipit - CHANGELOG.md etc #728
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: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetch history for all branches and tags | |
token: ${{ secrets.GH_TOKEN }} # use PAT with permissions to push to master | |
- name: Download latest auto | |
run: | | |
auto_download_url="$(curl -fsSL https://api.github.com/repos/intuit/auto/releases/latest | jq -r '.assets[] | select(.name == "auto-linux.gz") | .browser_download_url')" | |
wget -O- "$auto_download_url" | gunzip > ~/auto | |
chmod a+x ~/auto | |
- name: Create Release | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
~/auto shipit --message="auto shipit - CHANGELOG.md etc" |