-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.3 KB
/
pack_realm_functions.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
40
41
42
name: pack_realm_functions
on:
push:
branches:
- '*'
- '!main'
paths:
- 'directory_structures/functions/**'
- 'functions/**'
jobs:
pack_realm_functions:
if: github.ref_name != 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
name: Set up Node.js
- name: Pack functions into sub-directories
run: |
npm install mv
cd node_scripts
cd workflows
node pack_realm_functions.js
- name: Configure GitHub user
env:
GITHUB_ACTOR_EMAIL: ${{github.actor}}
GITHUB_ACTOR_USER_NAME: ${{github.actor}}
run: |
git config --local user.email "${GITHUB_ACTOR_EMAIL}@users.noreply.github.com"
git config --local user.name "${GITHUB_ACTOR_USER_NAME}"
- name: Commit files
id: commit_files
run: |
git add .
git commit -m "pack realm functions"
continue-on-error: true
- name: Push packed functions to repo
if: steps.commit_files.outcome == 'success'
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}
github_token: ${{ github.token }}