From 8ef77fdfe5e3b8027c5b11dfcc78c621e23d7f75 Mon Sep 17 00:00:00 2001 From: AZMCode Date: Wed, 5 Aug 2020 11:58:50 -0400 Subject: [PATCH 1/6] Flash fix to Workflow file --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 887a0ac..cfe7b3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: run: cd $GITHUB_WORKSPACE && yarn run clean:all && yarn run build:all Publish-Docs-And-Package: - if: github.ref == 'master' && github.event_name == 'push' + if: github.ref == 'master' && github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true needs: Test # The type of runner that the job will run on runs-on: ubuntu-latest From f94889bcd8e91b13584f68a2f1a681d6e4bb18d3 Mon Sep 17 00:00:00 2001 From: AZMCode Date: Wed, 5 Aug 2020 12:02:00 -0400 Subject: [PATCH 2/6] Another workflow fix --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfe7b3f..43f9183 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: run: cd $GITHUB_WORKSPACE && yarn run clean:all && yarn run build:all Publish-Docs-And-Package: - if: github.ref == 'master' && github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true needs: Test # The type of runner that the job will run on runs-on: ubuntu-latest From 3a989e74ed1e8a2be8ab9ef2e876b55bdb00a46f Mon Sep 17 00:00:00 2001 From: AZMCode Date: Wed, 5 Aug 2020 12:10:19 -0400 Subject: [PATCH 3/6] Restoring old main.yml conditions --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43f9183..887a0ac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: run: cd $GITHUB_WORKSPACE && yarn run clean:all && yarn run build:all Publish-Docs-And-Package: - if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.ref == 'master' && github.event_name == 'push' needs: Test # The type of runner that the job will run on runs-on: ubuntu-latest From f6dc5230776b4307ac5199f544d33228154450e0 Mon Sep 17 00:00:00 2001 From: AZMCode Date: Wed, 5 Aug 2020 13:46:39 -0400 Subject: [PATCH 4/6] Github actions debugging --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 887a0ac..57df1c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,8 @@ jobs: runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: + - name: Debugging + run: echo ${{toJSON(github)}} # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout Commit uses: actions/checkout@v2 From 21ed5156c3b6eda5c2a7812b8c69de43003ac9f6 Mon Sep 17 00:00:00 2001 From: AZMCode Date: Wed, 5 Aug 2020 13:48:10 -0400 Subject: [PATCH 5/6] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57df1c6..d5d5228 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Debugging - run: echo ${{toJSON(github)}} + run: echo '${{toJSON(github)}}' # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout Commit uses: actions/checkout@v2 From 6cd9c16e525c7d84fa41cf74bf74bcf8866367ea Mon Sep 17 00:00:00 2001 From: AZMCode Date: Wed, 5 Aug 2020 13:51:35 -0400 Subject: [PATCH 6/6] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5d5228..837b5a8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] jobs: Test: - if: github.ref != 'gh-pages' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) + if: github.ref != 'refs/heads/gh-pages' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -45,7 +45,7 @@ jobs: run: cd $GITHUB_WORKSPACE && yarn run clean:all && yarn run build:all Publish-Docs-And-Package: - if: github.ref == 'master' && github.event_name == 'push' + if: github.ref == 'refs/heads/master' && github.event_name == 'push' needs: Test # The type of runner that the job will run on runs-on: ubuntu-latest