From 9ff95cb4abe93fb8256cb81b29a89636761245f0 Mon Sep 17 00:00:00 2001 From: Ryan Goodfellow Date: Wed, 13 Nov 2024 22:57:48 -0800 Subject: [PATCH] ci: deploy: configure git before rebase Signed-off-by: Ryan Goodfellow --- .github/workflows/asciidoc-build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/asciidoc-build.yml b/.github/workflows/asciidoc-build.yml index 1c406dcf5..dce64154c 100644 --- a/.github/workflows/asciidoc-build.yml +++ b/.github/workflows/asciidoc-build.yml @@ -59,7 +59,7 @@ jobs: deploy: needs: build - if: github.repository == 'p4lang/p4-spec' && github.ref_name == 'main' + #if: github.repository == 'p4lang/p4-spec' && github.ref_name == 'main' runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -67,6 +67,11 @@ jobs: # Fetch all history for all branches fetch-depth: 0 + - name: Configure git + run: | + git config user.name "GitHub Actions" + git config user.email "p4lang@users.noreply.github.com" + - name: Rebase gh-pages branch run: | git checkout gh-pages @@ -90,10 +95,6 @@ jobs: name: api-charter path: api-charter - - name: Configure git - run: | - git config user.name "GitHub Actions" - git config user.email "p4lang@users.noreply.github.com" - name: Copy files run: |