Skip to content

Commit

Permalink
add action-build for dependabot updates (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jan 19, 2022
1 parent e3f8def commit 1a3998c
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 26 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/action-build.yml
@@ -0,0 +1,41 @@
name: Dependabot post-update
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches:
- 'master'

env:
HUSKY: '0'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
post-update:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Checkout out pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr checkout ${{ github.event.pull_request.number }}
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'

- run: yarn install --frozen-lockfile

- run: yarn build

- name: Commit and push if needed
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply dist/index.js changes
26 changes: 0 additions & 26 deletions .github/workflows/rebase.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -3,6 +3,10 @@ on:
push:
tags:
- v*.*.*

env:
HUSKY: '0'

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -6,6 +6,9 @@ on:
- master
pull_request:

env:
HUSKY: '0'

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1a3998c

Please sign in to comment.