From 1a14f4c2723cf565b250a092e50a61f7545f1ece Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20P=C3=A9rez?= <luis.perez@protonmail.com>
Date: Thu, 17 Dec 2020 20:57:22 -0600
Subject: [PATCH] refactoring workflow yaml

---
 .github/workflows/sync-workflow.yml | 60 ++++++++++++++---------------
 1 file changed, 30 insertions(+), 30 deletions(-)

diff --git a/.github/workflows/sync-workflow.yml b/.github/workflows/sync-workflow.yml
index 1670e617..e1d01d4c 100644
--- a/.github/workflows/sync-workflow.yml
+++ b/.github/workflows/sync-workflow.yml
@@ -1,38 +1,38 @@
-name: GitHub Sync to Upstream Repository
+name: Fork Sync with Upstream
 on:
-    schedule:
-        - cron: "00 20 * * 0" # every sunday at 20 hours
-    workflow_dispatch: # on button click
+  schedule:
+    - cron:  '0 7 * * 1,4'
+    # scheduled at 07:00 every Monday and Thursday
 
 jobs:
-    sync_with_upstream:
-        runs-on: ubuntu-latest
-        name: Sync master with upstream latest
+  sync_with_upstream:
+    runs-on: ubuntu-latest
+    name: Sync master with upstream latest
 
     steps:
-        # Step 1: run a standard checkout action, provided by github
-        - name: Checkout master
-          uses: actions/checkout@v2
-          with:
-              ref: master
-              # submodules: 'recursive'     ### possibly needed in your situation
+    # Step 1: run a standard checkout action, provided by github
+    - name: Checkout master
+      uses: actions/checkout@v2
+      with:
+        ref: master
+        # submodules: 'recursive'     ### possibly needed in your situation
 
-        # Step 2: run this sync action - specify the upstream repo, upstream branch to sync with, and target sync branch
-        - name: Pull (Fast-Forward) upstream changes
-          id: sync
-          uses: aormsby/Fork-Sync-With-Upstream-action@v2.0
-          with:
-              upstream_repository: mail-in-a-box/mailinabox
-              upstream_branch: master
-              target_branch: upstream
-              git_pull_args: --ff-only # optional arg use, defaults to simple 'pull'
-              github_token: ${{ secrets.G_TOKEN }} # optional, for accessing repos that require authentication
+    # Step 2: run this sync action - specify the upstream repo, upstream branch to sync with, and target sync branch
+    - name: Pull (Fast-Forward) upstream changes
+      id: sync
+      uses: aormsby/Fork-Sync-With-Upstream-action@v2.0
+      with:
+        upstream_repository: panr/hugo-theme-hello-friend
+        upstream_branch: master
+        target_branch: master
+        git_pull_args: --ff-only                    # optional arg use, defaults to simple 'pull'
+        github_token: ${{ secrets.GITHUB_TOKEN }}   # optional, for accessing repos that require authentication
 
-        # Step 3: Display a message if 'sync' step had new commits (simple test)
-        - name: Check for new commits
-          if: steps.sync.outputs.has_new_commits
-          run: echo "There were new commits."
+    # Step 3: Display a message if 'sync' step had new commits (simple test)
+    - name: Check for new commits
+      if: steps.sync.outputs.has_new_commits
+      run: echo "There were new commits."
 
-        # Step 4: Print a helpful timestamp for your records (not required)
-        - name: Timestamp
-          run: date
+    # Step 4: Print a helpful timestamp for your records (not required)
+    - name: Timestamp
+      run: date