Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only try to build on javascript changes #335

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions .github/workflows/renovate-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,29 @@ defaults:
shell: bash

jobs:
check:
runs-on: ubuntu-22.04
outputs:
javascript: ${{ steps.filter.outputs.javascript }}
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Check for changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
javascript:
- 'package.json'
- 'yarn.lock'
build:
if: ${{ github.actor == 'renovate[bot]' }}
if: ${{ github.actor == 'renovate[bot]' && needs.check.outputs.javascript == 'true' }}
runs-on: ubuntu-22.04
needs: check
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.COMMIT_PAT }}
Expand All @@ -29,10 +47,10 @@ jobs:
node-version-file: .nvmrc

- name: Install dependencies
run: yarn install
run: corepack yarn install

- name: Run build
run: yarn build
run: corepack yarn build

- name: Commit changes
id: commit
Expand Down