-
Notifications
You must be signed in to change notification settings - Fork 251
39 lines (32 loc) · 1.04 KB
/
parse-submission.yml
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
name: Update App Info
on:
push:
branches:
- main
jobs:
update-app-info:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.RBD_GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: cd shipixen && npm install
- name: Run update script
run: cd shipixen/scripts && node parse-app-info.js
- name: Commit and push changes
if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.RBD_GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'Update app info'
git push https://x-access-token:${{ secrets.RBD_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git