From dafb1a3cfdea47fc83f269a582db75c7114e6caf Mon Sep 17 00:00:00 2001 From: SuperLlama88888 Date: Sat, 18 Jan 2025 12:48:02 +1100 Subject: [PATCH] Fix update from upstream workflow --- .github/workflows/bundleAndDeploy.yml | 4 +--- .github/workflows/updateFromUpstream.yml | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bundleAndDeploy.yml b/.github/workflows/bundleAndDeploy.yml index 0c2722a..2511f95 100644 --- a/.github/workflows/bundleAndDeploy.yml +++ b/.github/workflows/bundleAndDeploy.yml @@ -84,6 +84,4 @@ jobs: workflow_id: 'updateFromUpstream.yml', ref: 'main' }); - console.log(`Workflow triggered with status ${res.status}`); - env: - GITHUB_TOKEN: ${{ secrets.PAT }} \ No newline at end of file + console.log(`Workflow triggered with status ${res.status}`); \ No newline at end of file diff --git a/.github/workflows/updateFromUpstream.yml b/.github/workflows/updateFromUpstream.yml index 169f28d..17cc81f 100644 --- a/.github/workflows/updateFromUpstream.yml +++ b/.github/workflows/updateFromUpstream.yml @@ -1,11 +1,13 @@ name: Update from Upstream on: workflow_dispatch: # triggered by bundleAndDeploy.yml -permissions: read-all +permissions: + contents: write jobs: update: name: Update runs-on: ubuntu-latest + if: github.repository == 'HoloPrint-MC/holoprint-mc.github.io' steps: - name: Checkout repository uses: actions/checkout@v4.1.1