Skip to content

Commit

Permalink
feat: rename banner files
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan-maulana-tkp committed Oct 28, 2020
1 parent b60c895 commit b2efda1
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 6 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/generateJson.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Generate JSON
'on':
"on":
push:
branches:
- master
Expand All @@ -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 added LAST_UPDATED
Empty file.
1 change: 0 additions & 1 deletion event-banner/.gitkeep

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit b2efda1

Please sign in to comment.