From 47623b0ba68fc3d7a13e95ca177500e44c290035 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 4 Mar 2024 22:08:38 +0000 Subject: [PATCH 1/2] Last time, honest Signed-off-by: Andrew W. Harn --- testfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 testfile diff --git a/testfile b/testfile new file mode 100644 index 0000000..839e0ae --- /dev/null +++ b/testfile @@ -0,0 +1 @@ +Create a test file \ No newline at end of file From 6164d5955e3c894e2ad6262cca21b1bdddc9d2c0 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 4 Mar 2024 22:32:50 +0000 Subject: [PATCH 2/2] Forcefully trigger the workflow run Signed-off-by: Andrew W. Harn --- .github/workflows/main.yml | 9 ++++++++- .github/workflows/pr.yml | 3 +++ testfile | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 testfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 24f1deb..0927d89 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -135,7 +135,7 @@ jobs: - name: Get Release Contents env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }} run: | gh release download ${{ github.event.inputs.zowe-version }} -p zowe-${{ github.event.inputs.zowe-version }}-WebHelp.zip rm -rf docs/${{ github.event.inputs.zowe-version }} @@ -149,6 +149,7 @@ jobs: git add docs/${{ github.event.inputs.zowe-version }} git commit -sm "Add Zowe Web Help ${{ github.event.inputs.zowe-version }}" git push origin HEAD + gh workflow run -r gh-pages deploy-pages.yml deploy-artifact: needs: test @@ -172,6 +173,8 @@ jobs: path: docs/${{ github.ref_name }} - name: Resolve Artifact + env: + GITHUB_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }} run: | mv docs/${{ github.ref_name }}/generatedWebHelp/* docs/${{ github.ref_name }}/. rmdir docs/${{ github.ref_name }}/generatedWebHelp @@ -181,6 +184,7 @@ jobs: git add docs/${{ github.ref_name }} git commit -sm "Add Zowe Web Help for ${{ github.ref_name }}" git push origin HEAD + gh workflow run -r gh-pages deploy-pages.yml deploy-pr: needs: test @@ -204,6 +208,8 @@ jobs: path: docs/pr-${{ github.event.number }} - name: Resolve Artifact + env: + GITHUB_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }} run: | mv docs/pr-${{ github.event.number }}/generatedWebHelp/* docs/pr-${{ github.event.number }}/. rmdir docs/pr-${{ github.event.number }}/generatedWebHelp @@ -213,6 +219,7 @@ jobs: git add docs/pr-${{ github.event.number }} git commit -sm "Add Zowe Web Help for PR ${{ github.event.number }}" git push origin HEAD + gh workflow run -r gh-pages deploy-pages.yml - name: Comment on PR uses: marocchino/sticky-pull-request-comment@v2 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6c3d801..ce37bb3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,6 +14,8 @@ jobs: ref: 'gh-pages' - name: Remove directory + env: + GITHUB_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }} run: | rm -rf docs/pr-${{ github.event.number }} git config --global user.name ${{ secrets.ZOWE_ROBOT_USER }} @@ -21,3 +23,4 @@ jobs: git rm -r docs/pr-${{ github.event.number }} git commit -sm "Remove Zowe Web Help for PR ${{ github.event.number }}" git push origin HEAD + gh workflow run -r gh-pages deploy-pages.yml \ No newline at end of file diff --git a/testfile b/testfile deleted file mode 100644 index 839e0ae..0000000 --- a/testfile +++ /dev/null @@ -1 +0,0 @@ -Create a test file \ No newline at end of file