From 6ddd69d35fe2cfce84031a13576efe44699a3e8d Mon Sep 17 00:00:00 2001 From: Victor Baham <83256374+MasterPastures@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:53:46 -0400 Subject: [PATCH] Remove PR GitHub Action from generate-current-manifests.yml I gave the fine-grained PAT read/write access to Pull Requests, so let's see if that avoids the branch protection issue --- .../workflows/generate-current-manifests.yml | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/generate-current-manifests.yml b/.github/workflows/generate-current-manifests.yml index 9e289a9..fd02165 100644 --- a/.github/workflows/generate-current-manifests.yml +++ b/.github/workflows/generate-current-manifests.yml @@ -33,31 +33,15 @@ jobs: - name: Install Libraries shell: bash run: pip install -r requirements.txt - - - name: Switch to branch - shell: bash - run: | - git checkout -b new-branch - + - name: Generate all manifests working-directory: tests run: ./generate_all_templates.sh - - name: Commit changes + - name: Commit and push changes run: | git config --local user.name "$GITHUB_ACTOR" git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" git add --all git commit -m "GitHub Action: generate latest manifests" || echo "No changes to commit" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v7 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - branch: new-branch - base: main - title: "Review changes to generate-current-manifests.yml" - body: "Merge if all looks well" + git push