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