forked from mazipan/talks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b60c895
commit b2efda1
Showing
8 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: Generate JSON | ||
'on': | ||
"on": | ||
push: | ||
branches: | ||
- master | ||
|
@@ -12,32 +12,44 @@ jobs: | |
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Use node 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: 'echo "::set-output name=dir::$(yarn cache dir)"' | ||
|
||
- name: Cache Node.js modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: '${{ steps.yarn-cache.outputs.dir }}' | ||
key: '${{ runner.OS }}-yarn-${{ hashFiles(''**/yarn.lock'') }}' | ||
path: "${{ steps.yarn-cache.outputs.dir }}" | ||
key: "${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}" | ||
restore-keys: | | ||
${{ runner.OS }}-yarn- | ||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Generate file json | ||
run: yarn toJson | ||
|
||
- name: Modify last update | ||
run: | | ||
d=`date '+%Y-%m-%dT%H:%M:%SZ'` | ||
echo $d > LAST_UPDATED | ||
- name: Commit files report | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Github Actions" | ||
git add -A | ||
git commit -m "✅ [Github Actions]: Generate json file" | ||
git commit -m "✅ by Github Actions" | ||
- name: GitHub Push | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: '${{ secrets.GITHUB_TOKEN }}' | ||
github_token: "${{ secrets.GITHUB_TOKEN }}" | ||
force: true |
Empty file.
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes