blob: a9a1b54a312cef02b484eaa0cd2cd4498b8e12ef [file] [log] [blame]
Josh Bleecher Snyderefda3962025-04-30 13:09:42 -07001# This is a copy of queue-main.yml, but with a different branch pattern.
2# It does not push the result anywhere; it logs instead.
3# It is meant for people changing how the commit queue works:
4# You can hack on the workflows, push to queue-dev-$USER, and iterate.
5# Please keep this file in sync with queue-main.yml.
6
7name: Dev Commit Queue
8on:
9 push:
10 branches:
11 - "queue-dev-*"
12
13permissions: read-all
14
15jobs:
16 formatting:
17 uses: ./.github/workflows/formatting.yml
18 permissions:
19 contents: write
20 with:
21 auto_fix: true
22
23 go-test:
24 needs: [formatting]
25 uses: ./.github/workflows/go_test.yml
26 permissions: read-all
27
28 ui-test:
29 needs: [formatting]
30 uses: ./.github/workflows/webui_test.yml
31 permissions: read-all
32
33 push-to-main:
34 runs-on: ubuntu-latest
35 needs: [go-test, ui-test, formatting]
36 permissions:
37 contents: write
38 steps:
39 - uses: actions/checkout@v4
40 with:
41 fetch-depth: 0
42
43 - name: Push to main
44 run: |
45 COMMIT_TO_PUSH="HEAD"
46 if [[ "${{ needs.formatting.outputs.commit_sha }}" != "" ]]; then
47 echo "Using formatted commit: ${{ needs.formatting.outputs.commit_sha }}"
48 COMMIT_TO_PUSH="${{ needs.formatting.outputs.commit_sha }}"
49 fi
50
51 echo "Would push to main: ${COMMIT_TO_PUSH}"
52 env:
53 GITHUB_TOKEN: ${{ github.token }}