-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.34 KB
/
layer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Package bump Layer
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout injective-ui repository
uses: actions/checkout@v2
with:
repository: InjectiveLabs/injective-ui
path: injective-ui
token: ${{ secrets.GH_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18.x"
- name: Install dependencies
run: |
cd injective-ui
cd layer
yarn install
- name: Commit changes
run: |
cd injective-ui
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git commit -m "chore: package bump"
- name: Push changes
run: |
cd injective-ui
git push origin master
# - name: Create branch
# run: |
# cd injective-ui
# git checkout -b update-from-shared-packages
# - name: Create Pull Request
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# run: |
# gh pr create --repo InjectiveLabs/injective-ui --head update-from-shared-packages --base master --title "Package bump" --body "This is an automated pull request created by GitHub Actions."