diff --git a/.github/workflows/AutoFormat.yml b/.github/workflows/AutoFormat.yml index 0431b9f..71210db 100644 --- a/.github/workflows/AutoFormat.yml +++ b/.github/workflows/AutoFormat.yml @@ -6,6 +6,7 @@ on: branches: - main pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: - main @@ -15,18 +16,26 @@ concurrency: jobs: web: + if: ${{ !github.event.pull_request.draft }} name: Web runs-on: ubuntu-slim permissions: contents: write - id-token: write steps: - name: Checkout Pull Request + if: github.event_name == 'pull_request' uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: ref: ${{ github.event.pull_request.head.ref }} fetch-depth: 1 + - name: Checkout Branch + if: github.event_name == 'push' + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + ref: ${{ github.ref }} + fetch-depth: 1 + - name: Setup NodeJS uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 diff --git a/Web/index.html b/Web/index.html index 2392264..4e6f633 100644 --- a/Web/index.html +++ b/Web/index.html @@ -27,6 +27,7 @@ +