diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd4347e4..0728d826 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,7 +81,7 @@ jobs: id-token: write environment: pypi steps: - - uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: path: dist merge-multiple: true diff --git a/.github/workflows/chore-main.yml b/.github/workflows/chore-main.yml new file mode 100644 index 00000000..7f75c432 --- /dev/null +++ b/.github/workflows/chore-main.yml @@ -0,0 +1,21 @@ +name: Chore +on: + push: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + draft-release: + name: Draft Release + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: read + steps: + - name: Update release draft + uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1 + with: + token: ${{ github.token }} diff --git a/.github/workflows/chore.yml b/.github/workflows/chore-pr.yml similarity index 65% rename from .github/workflows/chore.yml rename to .github/workflows/chore-pr.yml index 6c644e8e..4131bdb9 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore-pr.yml @@ -3,8 +3,6 @@ on: pull_request_target: branches: [main] types: [opened, reopened, edited, synchronize] - push: - branches: [main] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -13,7 +11,6 @@ concurrency: jobs: check-pr-title: name: Check PR Title - if: github.event_name == 'pull_request_target' runs-on: ubuntu-latest permissions: contents: read @@ -28,7 +25,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} - name: Post comment about invalid PR title if: failure() - uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4 + uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 # v3.0.2 with: header: conventional-commit-pr-title message: | @@ -45,22 +42,18 @@ jobs: - name: Delete comment about invalid PR title if: success() - uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4 + uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 # v3.0.2 with: header: conventional-commit-pr-title delete: true - release-drafter: - name: ${{ github.event_name == 'pull_request_target' && 'Assign Labels' || 'Draft Release' }} + assign-labels: + name: Assign Labels runs-on: ubuntu-latest permissions: - contents: write pull-requests: write steps: - - name: ${{ github.event_name == 'pull_request_target' && 'Assign labels' || 'Update release draft' }} - uses: release-drafter/release-drafter@6db134d15f3909ccc9eefd369f02bd1e9cffdf97 # v6.2.0 + - name: Assign labels + uses: release-drafter/release-drafter/autolabeler@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1 with: - disable-releaser: ${{ github.event_name == 'pull_request_target' }} - disable-autolabeler: ${{ github.event_name == 'push' }} - env: - GITHUB_TOKEN: ${{ github.token }} + token: ${{ github.token }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4badb746..0dcfdc0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - name: Install Rust run: rustup show - name: Cache Rust dependencies - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: pre-commit run: pixi run pre-commit-run --color=always --show-diff-on-failure @@ -71,7 +71,7 @@ jobs: - name: Install Rust run: rustup show - name: Cache Rust dependencies - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Install repository run: pixi run -e ${{ matrix.environment }} postinstall - name: Run pytest diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index aa30b1a6..d2e8c15d 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -21,6 +21,6 @@ jobs: - name: Install Rust run: rustup show - name: Cache Rust dependencies - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 - name: Install repository run: pixi run postinstall