Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: CI

on:
push:
branches: [main, release]
Expand All @@ -6,8 +8,6 @@ on:
merge_group:
workflow_dispatch:

name: CI

# Cancel previous workflows if they are the same workflow on same ref (branch/tags)
# with the same event (push/pull_request) even they are in progress.
# This setting will help reduce the number of duplicated workflows.
Expand Down
25 changes: 7 additions & 18 deletions .github/workflows/pr-auto-commit.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: PR Auto-format

# This workflow triggers when a PR is opened/updated
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches:
- main
- release
workflow_run:
workflows:
- CI
types:
- completed

concurrency:
group: pr-fmt-${{ github.event.pull_request.number }}
Expand All @@ -15,6 +14,8 @@ concurrency:
jobs:
auto_format:
if: |
github.event_name == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' &&
!contains(github.event.pull_request.labels.*.name, 'skip:ci') &&
!contains(github.event.pull_request.head.sha, '[skip ci]')
permissions:
Expand All @@ -33,18 +34,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

# Wait for all PR check runs to complete
- name: Wait for all checks to complete
uses: poseidon/wait-for-status-checks@v0.6.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
delay: 60
interval: 30
timeout: 7200

- name: CI completed successfully
run: echo "CI workflow completed successfully - proceeding with auto-format"

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand Down
Loading