From 7c06b38bd1862939dfb292b5999df7a3378c841a Mon Sep 17 00:00:00 2001 From: Robert Bradley Date: Wed, 29 Jan 2025 13:52:42 +0000 Subject: [PATCH] fix: Update behave_pull_request.yml --- .github/workflows/behave_pull_request.yml | 33 ++++++----------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/.github/workflows/behave_pull_request.yml b/.github/workflows/behave_pull_request.yml index beda1d01bb..6c4fda2e6e 100644 --- a/.github/workflows/behave_pull_request.yml +++ b/.github/workflows/behave_pull_request.yml @@ -2,7 +2,7 @@ name: Test Councils (Pull Request Only) on: workflow_dispatch: - pull_request: + pull_request_target: branches: [ "master" ] paths-ignore: - "wiki/**" @@ -239,27 +239,10 @@ jobs: - name: Display structure of moved files run: ls -R - # Set up Git for pushing changes - - name: Set up Git - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - - # Authenticate using the personal access token (GH_PAGES_TOKEN) - - name: Authenticate with GH_PAGES_TOKEN - run: | - git remote set-url origin https://x-access-token:${{ secrets.GH_PAGES_TOKEN }}@github.com/${{ github.repository }}.git - - # Pull the latest changes from gh-pages and switch to the gh-pages branch - - name: Pull latest changes from gh-pages - run: | - git fetch origin - git checkout gh-pages - git pull origin gh-pages - - # Commit and push changes to gh-pages - - name: Commit and push changes to gh-pages - run: | - git add . - git commit -m "Deploy reports to gh-pages" - git push https://x-access-token:${{ secrets.GH_PAGES_TOKEN }}@github.com/${{ github.repository }}.git gh-pages + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: ./ + keep_files: true