Skip to content

Commit

Permalink
defichain-dependencies.yml to bump jellyfish/whale/playground individ…
Browse files Browse the repository at this point in the history
…ually (#397)
  • Loading branch information
fuxingloh authored Aug 2, 2021
1 parent b915adb commit 2a91cea
Showing 1 changed file with 67 additions and 8 deletions.
75 changes: 67 additions & 8 deletions .github/workflows/defichain-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ name: DeFiChain Dependencies
on:
workflow_dispatch:
schedule:
- cron: '0 */2 * * *'
- cron: '0 * * * *'

jobs:
build:
name: Build
jellyfish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
Expand All @@ -17,7 +16,7 @@ jobs:

- name: Upgrade dependencies
run: |
npx npm-check-updates -l m -u --deep --target newest --pre -f "/^@defichain\/.+/" \
npx npm-check-updates -l m -u --deep --target newest --pre -f "/^@defichain\/.+/" -x "/^@defichain\/whale-.+/" -x "/^@defichain\/playground-.+/" \
| grep -q 'Run npm install to install new versions' && \
npm i
Expand All @@ -26,13 +25,73 @@ jobs:
with:
token: ${{ secrets.DEFICHAIN_BOT_GITHUB_TOKEN }}
labels: kind/dependencies
commit-message: Bump defichain dependencies
committer: DeFiChain Bot <[email protected]>
author: DeFiChain Bot <[email protected]>
title: Bump defichain dependencies
title: Bump @defichain/jellyfish dependencies
commit-message: Bump @defichain/jellyfish dependencies
body: |
#### What kind of PR is this?:
/kind dependencies
#### What this PR does / why we need it:
Bump `@defichain/*` dependencies to the newest release.
branch: defichain-bot/bump-deps
Bump `@defichain/jellyfish` dependencies to the latest release.
branch: defichain-bot/bump-jellyfish-deps

whale:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- uses: actions/setup-node@aa759c6c94d3800c55b8601f21ba4b2371704cb7
with:
node-version: 15

- name: Upgrade dependencies
run: |
npx npm-check-updates -l m -u --deep --target newest --pre -f "/^@defichain\/whale-.+/" \
| grep -q 'Run npm install to install new versions' && \
npm i
- name: Create Pull Request
uses: peter-evans/create-pull-request@9825ae65b1cb54b543b938503728b432a0176d29
with:
token: ${{ secrets.DEFICHAIN_BOT_GITHUB_TOKEN }}
labels: kind/dependencies
committer: DeFiChain Bot <[email protected]>
author: DeFiChain Bot <[email protected]>
title: Bump @defichain/whale dependencies
commit-message: Bump @defichain/whale dependencies
body: |
#### What kind of PR is this?:
/kind dependencies
#### What this PR does / why we need it:
Bump `@defichain/whale` dependencies to the latest release.
branch: defichain-bot/bump-whale-deps

playground:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- uses: actions/setup-node@aa759c6c94d3800c55b8601f21ba4b2371704cb7
with:
node-version: 15

- name: Upgrade dependencies
run: |
npx npm-check-updates -l m -u --deep --target newest --pre -f "/^@defichain\/playground-.+/" \
| grep -q 'Run npm install to install new versions' && \
npm i
- name: Create Pull Request
uses: peter-evans/create-pull-request@9825ae65b1cb54b543b938503728b432a0176d29
with:
token: ${{ secrets.DEFICHAIN_BOT_GITHUB_TOKEN }}
labels: kind/dependencies
committer: DeFiChain Bot <[email protected]>
author: DeFiChain Bot <[email protected]>
title: Bump @defichain/playground dependencies
commit-message: Bump @defichain/playground dependencies
body: |
#### What kind of PR is this?:
/kind dependencies
#### What this PR does / why we need it:
Bump `@defichain/playground` dependencies to the latest release.
branch: defichain-bot/bump-playground-deps

0 comments on commit 2a91cea

Please sign in to comment.