From 0fd1fd56dcaa95a2b3e4e5af70242c4d09127cb5 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Mon, 17 Jul 2023 12:04:52 +0200 Subject: [PATCH] Minor generation workflow bugfix --- .github/workflows/generate.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 4a6a119cbd..cb40e4d3a0 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -24,6 +24,8 @@ defaults: jobs: build: runs-on: ubuntu-latest + # The actor check currently does not work. The `secrets.PAT` belongs to `delvedor` and not + # `elasticmachine`. We should make sure to change this in the future. if: github.repository_owner == 'elastic' && github.actor != 'elasticmachine' steps: - name: Checkout @@ -64,13 +66,8 @@ jobs: - name: Push Output if: steps.changes.outputs.has-changes == '1' run: | - cd ./output - - git add -A + git add -A ./output git commit -m "Update specification output" - - git status - git push # For debugging purposes: @@ -79,14 +76,9 @@ jobs: # env: # BRANCH_NAME: output_${{ github.run_id }}_${{ github.run_attempt }} # run: | - # cd ./output - # git fetch # git switch main - # git add -A + # git add -A ./output # git commit -m "Update specification output" - - # git status - # git push origin HEAD:refs/heads/${{ env.BRANCH_NAME }}