CI: Refactor branch matching in jobs

Matching `master` can be a bit simpler and prevent invoking the job
altogether. Additionally, we don't need an `always()` here: we don't
have job dependencies and we want these jobs to be cancelable.
This commit is contained in:
Jelle Raaijmakers 2024-12-12 11:56:40 +01:00 committed by Tim Flynn
commit b00bb05b6b
Notes: github-actions[bot] 2024-12-17 13:50:19 +00:00
2 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,8 @@
name: Package the js repl as a binary artifact name: Package the js repl as a binary artifact
on: [push] on:
push:
branches: [master]
env: env:
LADYBIRD_SOURCE_DIR: ${{ github.workspace }} LADYBIRD_SOURCE_DIR: ${{ github.workspace }}
@ -11,7 +13,7 @@ env:
jobs: jobs:
build-and-package: build-and-package:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: always() && github.repository == 'LadybirdBrowser/ladybird' && github.ref == 'refs/heads/master' if: github.repository == 'LadybirdBrowser/ladybird'
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:

View file

@ -1,6 +1,8 @@
name: Run test262 and test-wasm name: Run test262 and test-wasm
on: [push] on:
push:
branches: [master]
env: env:
LADYBIRD_SOURCE_DIR: ${{ github.workspace }} LADYBIRD_SOURCE_DIR: ${{ github.workspace }}
@ -9,7 +11,7 @@ env:
jobs: jobs:
run_and_update_results: run_and_update_results:
runs-on: test262-runner runs-on: test262-runner
if: always() && github.repository == 'LadybirdBrowser/ladybird' && github.ref == 'refs/heads/master' if: github.repository == 'LadybirdBrowser/ladybird'
concurrency: libjs-test262 concurrency: libjs-test262