Skip to content

Commit

Permalink
Build for renovate PR
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Sep 10, 2024
1 parent 6b58659 commit 57df653
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/dependabot-build.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/renovate-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run build for renovate PRs

on:
pull_request:
types: [opened, synchronize]

permissions:
contents: write
pull-requests: read

defaults:
run:
shell: bash

jobs:
build:
if: ${{ github.actor == 'renovate[bot]' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.COMMIT_PAT }}

- name: Set up Node.js
uses:
actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: .nvmrc

- name: Install dependencies
run: yarn install

- name: Run build
run: yarn build

- name: Commit changes
id: commit
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
commit_message: 'Update dist/ after build'

0 comments on commit 57df653

Please sign in to comment.