From 0c0961db7c28c124eb0e37e24f9610eecd80d1ce Mon Sep 17 00:00:00 2001 From: Wes Todd Date: Fri, 12 Jul 2024 12:10:29 -0700 Subject: [PATCH] fix: small generate action fix --- .github/workflows/generate.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 4f774bac..4bb45432 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -5,6 +5,10 @@ on: - cron: '0 0 1 * *' # Runs on the first day of each month at midnight workflow_dispatch: # Allows the workflow to be triggered manually +permissions: + contents: write + pull-requests: write + jobs: update-and-pr: runs-on: ubuntu-latest @@ -44,7 +48,8 @@ jobs: else echo "No changes detected." echo "::set-output name=changes_detected::false" - echo "::set-output name=branch::" + echo "::set-output name=branch::$BRANCH_NAME" + fi - name: Create Pull Request 🚀 if: steps.check_changes.outputs.changes_detected == 'true' @@ -54,5 +59,5 @@ jobs: branch: ${{ steps.check_changes.outputs.branch }} title: "🤖Automated update" body: "This PR contains automated updates from running `npm run update`" - labels: ["automated update"] + labels: "automated update"