fix: fix the workflow to only run on main branch
All checks were successful
Check code passes formatting and lint rules / cargo fmt (push) Successful in 1m36s
Check code passes formatting and lint rules / check (push) Successful in 1m56s

This commit is contained in:
Guilhem Lavaux 2025-06-30 08:11:43 +02:00
parent c03f2751f0
commit 5caa94f71d
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,5 @@
name: Check code passes formatting and lint rules
on: [push]
jobs:
check:

View file

@ -1,4 +1,9 @@
on: [push]
name: Build and create binary artifact
on:
push:
branches:
- main
jobs:
release:
runs-on: docker
@ -8,5 +13,5 @@ jobs:
- run: cargo build --release
- uses: actions/upload-artifact@v3
with:
name: binary
path: target/release/forgejo_automate
name: binary
path: target/release/forgejo_automate