Skip to content

Commit

Permalink
Use GOV.UK conventions for running GitHub Action workflows
Browse files Browse the repository at this point in the history
This updates the approach to running this workflow to reflect the
approach in: alphagov/govuk-developer-docs#3961
  • Loading branch information
kevindew committed Jul 27, 2023
1 parent cf828c3 commit fcaa53c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
ref:
description: 'The branch, tag or SHA to checkout'
default: main
type: string

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref || github.ref }}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
Expand Down

0 comments on commit fcaa53c

Please sign in to comment.