Repository navigation
feat(linux): --launch opens the pages xdg-open passes; desktop entry handles web content #35
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Main PR Source | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| require-dev-source: | |
| # Upstream's dev→main branch policy. This fork works on feature branches | |
| # straight into main (dev and main have long diverged here), so the check | |
| # only applies on the upstream repository — on the fork it skips instead | |
| # of failing every PR and drowning real CI signal in structural red. | |
| if: github.repository == 'citrolabs/ego-lite' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Require dev or docs branch | |
| # Read through the environment rather than interpolating into the shell; | |
| # a branch name is attacker-controlled on a fork PR. Same hardening as | |
| # #128 applied on dev. | |
| env: | |
| HEAD_REF: ${{ github.head_ref }} | |
| run: | | |
| case "$HEAD_REF" in | |
| dev|docs/*) | |
| echo "Source branch '$HEAD_REF' is allowed." | |
| ;; | |
| *) | |
| echo "Pull requests into main must come from 'dev' or a 'docs/*' branch." | |
| echo "Got: '$HEAD_REF'" | |
| exit 1 | |
| ;; | |
| esac |