Unverified Commit d7b3bd2a authored by Muyang Li's avatar Muyang Li Committed by GitHub
Browse files

chore: update the workflows (#553)

parent a161ddfd
......@@ -2,14 +2,13 @@ name: Clean Old Nightly Releases
on:
schedule:
- cron: '* 6 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
cleanup:
name: Delete old nightly releases and tags
runs-on: ubuntu-latest
if: github.repository == 'mit-han-lab/nunchaku'
if: github.repository == 'nunchaku-tech/nunchaku'
steps:
- name: Checkout repository
uses: actions/checkout@v4
......
......@@ -8,7 +8,7 @@ permissions:
contents: read
jobs:
close-inactive-issues:
if: github.repository == 'mit-han-lab/nunchaku'
if: github.repository == 'nunchaku-tech/nunchaku'
runs-on: ubuntu-latest
steps:
- name: Check and close inactive issues
......
......@@ -3,7 +3,6 @@ on:
push:
branches:
- main
- dev
pull_request:
jobs:
lint:
......
......@@ -2,23 +2,22 @@ name: Nightly Build
on:
schedule:
- cron: '0 8 * * *' # UTC time
workflow_dispatch:
permissions:
contents: write
jobs:
tag:
name: Tag dev branch if dev version
name: Check if main branch is a dev version
runs-on: ubuntu-latest
if: github.repository == 'mit-han-lab/nunchaku'
if: github.repository == 'nunchaku-tech/nunchaku'
outputs:
need_build: ${{ steps.check.outputs.need_build }}
tag_name: ${{ steps.tag.outputs.tag_name }}
steps:
- name: Checkout dev branch
- name: Checkout main branch
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: dev
ref: main
- name: Extract version from __version__.py
id: version
run: |
......@@ -73,7 +72,7 @@ jobs:
name: Build the linux nightly wheels
runs-on: [self-hosted, linux-build]
needs: tag
if: needs.tag.outputs.need_build == 'true' && github.repository == 'mit-han-lab/nunchaku'
if: needs.tag.outputs.need_build == 'true' && github.repository == 'nunchaku-tech/nunchaku'
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
......
......@@ -7,7 +7,7 @@ jobs:
release:
name: Tag Main Branch and Create Release
runs-on: ubuntu-latest
if: github.repository == 'mit-han-lab/nunchaku'
if: github.repository == 'nunchaku-tech/nunchaku'
outputs:
tag_name: ${{ steps.set-tag.outputs.tag_name }}
steps:
......
......@@ -7,7 +7,7 @@ permissions:
contents: read
jobs:
reopen-issue:
if: github.repository == 'mit-han-lab/nunchaku'
if: github.repository == 'nunchaku-tech/nunchaku'
runs-on: ubuntu-latest
steps:
- name: Check if comment is /reopen by issue creator and reopen
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment