diff --git a/.github/workflows/generateJson.yml b/.github/workflows/generateJson.yml index 15e72bcf..fb7d2069 100644 --- a/.github/workflows/generateJson.yml +++ b/.github/workflows/generateJson.yml @@ -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 "actions@github.com" 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/github-push-action@v0.5.0 with: - github_token: '${{ secrets.GITHUB_TOKEN }}' + github_token: "${{ secrets.GITHUB_TOKEN }}" force: true diff --git a/LAST_UPDATED b/LAST_UPDATED new file mode 100644 index 00000000..e69de29b diff --git a/event-banner/.gitkeep b/event-banner/.gitkeep deleted file mode 100644 index 8b137891..00000000 --- a/event-banner/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/event-banner/Screenshot_20200720-213224_Instagram.jpg b/event-banner/2020-07-belajar-js-skilvul.jpg similarity index 100% rename from event-banner/Screenshot_20200720-213224_Instagram.jpg rename to event-banner/2020-07-belajar-js-skilvul.jpg diff --git a/event-banner/ig-feed__2_.jpg b/event-banner/2020-08-core-web-vital.jpg similarity index 100% rename from event-banner/ig-feed__2_.jpg rename to event-banner/2020-08-core-web-vital.jpg diff --git a/event-banner/Screenshot_20201028-093641_Gallery.jpg b/event-banner/2020-10-intech-fest.jpg similarity index 100% rename from event-banner/Screenshot_20201028-093641_Gallery.jpg rename to event-banner/2020-10-intech-fest.jpg diff --git a/event-banner/start-summit-ext-oct-2020.jpg b/event-banner/2020-10-start-summit-ext.jpg similarity index 100% rename from event-banner/start-summit-ext-oct-2020.jpg rename to event-banner/2020-10-start-summit-ext.jpg diff --git a/photo/irfan-maulana-08-2019.JPG b/photo/2019-08-mazipan.jpg similarity index 100% rename from photo/irfan-maulana-08-2019.JPG rename to photo/2019-08-mazipan.jpg