diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 740ce07c..ad5429ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python uses: he0119/setup-python@main @@ -28,7 +28,7 @@ jobs: run: poetry run pytest --cov=src --cov-report xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -39,20 +39,20 @@ jobs: if: ${{ github.event_name != 'pull_request' }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Docker - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Github Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Generate Tags - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 id: metadata with: images: ghcr.io/nonebot/noneflow @@ -61,7 +61,7 @@ jobs: type=ref,event=branch - name: Build and Publish - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . push: true @@ -75,7 +75,7 @@ jobs: if: ${{ github.event_name == 'release' && github.event.action == 'published' }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set Tag Name run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml index 17239d83..458285d0 100644 --- a/.github/workflows/release-draft.yml +++ b/.github/workflows/release-draft.yml @@ -12,6 +12,6 @@ jobs: name: Update Release Draft runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter@v5 + - uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}