Skip to content

Commit

Permalink
Run website build on all pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson authored Apr 13, 2023
1 parent 2f7a794 commit d15b2a4
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/website-build.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
name: Website build
on: pull_request

permissions:
contents: write
pull-requests: write
issues: write
repository-projects: write

jobs:
dependabot:
build:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: azure/setup-kubectl@v3
with:
version: 'v1.22.12'
version: 'v1.23.9'
id: install
- name: Add a label for Dependabot Terraform PRs
if: ${{contains(steps.metadata.outputs.directory, '/website')}}
- name: Run website build
working-directory: website
run: |
npm install
Expand Down

0 comments on commit d15b2a4

Please sign in to comment.