diff --git a/.github/workflows/autolabeler.yml b/.github/workflows/autolabeler.yml new file mode 100644 index 00000000..2b2cfff6 --- /dev/null +++ b/.github/workflows/autolabeler.yml @@ -0,0 +1,16 @@ +name: Auto Label + +on: + pull_request: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + auto_label: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter/autolabeler@v7 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cdb1aeaf..f9ee87b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -44,18 +44,18 @@ jobs: uses: actions/checkout@v6 - name: Setup Docker - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Login to Github Container Registry if: github.event_name != 'pull_request' - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Generate Tags - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 id: metadata with: images: ghcr.io/nonebot/noneflow @@ -85,7 +85,7 @@ jobs: skip-extraction: ${{ steps.cache.outputs.cache-hit }} - name: Build and Publish - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . file: ./docker/noneflow.dockerfile @@ -104,18 +104,18 @@ jobs: uses: actions/checkout@v6 - name: Setup Docker - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Login to Github Container Registry if: github.event_name != 'pull_request' - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Generate Tags - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 id: metadata with: images: ghcr.io/nonebot/nonetest @@ -145,7 +145,7 @@ jobs: skip-extraction: ${{ steps.cache.outputs.cache-hit }} - name: Build and Publish - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . file: ./docker/nonetest.dockerfile diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml index 458285d0..af5e4ad4 100644 --- a/.github/workflows/release-draft.yml +++ b/.github/workflows/release-draft.yml @@ -4,14 +4,13 @@ on: push: branches: - main - pull_request: - types: [opened, reopened, synchronize] + +permissions: + contents: write + pull-requests: read jobs: update_release_draft: - name: Update Release Draft runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: release-drafter/release-drafter@v7