Skip to content

Commit 6d30b02

Browse files
committed
Build binary before checking out history branch
1 parent b755b9d commit 6d30b02

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v6
23-
- name: Checkout history branch
24-
run: |
25-
git config --global user.name "jstrieb/github-stats"
26-
git config --global user.email "github-stats[bot]@jstrieb.github.io"
27-
# Push generated files to the generated branch
28-
git pull
29-
git checkout generated || git checkout -b generated
30-
git merge master || true
3123

3224
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2 tag
3325
with:
@@ -37,6 +29,14 @@ jobs:
3729
run: |
3830
zig build --release
3931
32+
- name: Checkout history branch
33+
run: |
34+
git config --global user.name "jstrieb/github-stats"
35+
git config --global user.email "github-stats[bot]@jstrieb.github.io"
36+
# Push generated files to the generated branch
37+
git pull
38+
git checkout generated || git checkout -b generated
39+
4040
- name: Generate images
4141
run: |
4242
./zig-out/bin/github-stats

0 commit comments

Comments
 (0)