Skip to content

Fix/hf offline resilient loading #264

Fix/hf offline resilient loading

Fix/hf offline resilient loading #264

Workflow file for this run

name: Auto-release on PR merge
on:
pull_request:
branches: [main, alpha]
types: [closed]
env:
AUTO_VERSION: v11.2.1
jobs:
auto-release:
name: Create release
runs-on: ubuntu-latest
# Stable release: merged PR to main with 'release' label
# Alpha pre-release: merged PR to alpha (no label needed)
if: >-
github.event.pull_request.merged == true &&
(
contains(github.event.pull_request.labels.*.name, 'release') ||
github.event.pull_request.base.ref == 'alpha'
)
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
- name: Unset header
run: git config --local --unset http.https://github.com/.extraheader
- name: Download auto
run: |
auto_download_url="$(curl -fsSL https://api.github.com/repos/intuit/auto/releases/tags/$AUTO_VERSION | 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
run: ~/auto shipit -vv
env:
GH_TOKEN: ${{ secrets.AUTO_ORG_TOKEN }}