From b2efda1347889712e89c7f6a98cf15066cba65b6 Mon Sep 17 00:00:00 2001 From: Irfan Maulana Date: Wed, 28 Oct 2020 18:57:17 +0700 Subject: [PATCH] feat: rename banner files --- .github/workflows/generateJson.yml | 22 ++++++++++++++---- LAST_UPDATED | 0 event-banner/.gitkeep | 1 - ...ram.jpg => 2020-07-belajar-js-skilvul.jpg} | Bin ...eed__2_.jpg => 2020-08-core-web-vital.jpg} | Bin ...41_Gallery.jpg => 2020-10-intech-fest.jpg} | Bin ...-2020.jpg => 2020-10-start-summit-ext.jpg} | Bin ...aulana-08-2019.JPG => 2019-08-mazipan.jpg} | Bin 8 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 LAST_UPDATED delete mode 100644 event-banner/.gitkeep rename event-banner/{Screenshot_20200720-213224_Instagram.jpg => 2020-07-belajar-js-skilvul.jpg} (100%) rename event-banner/{ig-feed__2_.jpg => 2020-08-core-web-vital.jpg} (100%) rename event-banner/{Screenshot_20201028-093641_Gallery.jpg => 2020-10-intech-fest.jpg} (100%) rename event-banner/{start-summit-ext-oct-2020.jpg => 2020-10-start-summit-ext.jpg} (100%) rename photo/{irfan-maulana-08-2019.JPG => 2019-08-mazipan.jpg} (100%) 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