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

add action-build for dependabot updates #1036

Merged
merged 4 commits into from Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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