-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1.15 KB
/
manual.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
name: Manual request of parcels from dogis site.
on: [workflow_dispatch]
jobs:
parse-parcels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Create local changes
run: |
npm i
node server/index.js
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Ed Snodgrass"
git add -A
git commit -m "Update parcel data from manual job" -a
git pull
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Deploy react app to github pages
uses: tanwanimohit/[email protected]
env:
CI: false