From 4374b01f027be0fb9f6f08766cc611fb8dd7b43b Mon Sep 17 00:00:00 2001 From: JJ Fullmer Date: Mon, 5 Aug 2024 10:53:58 -0600 Subject: [PATCH] Fix PR step syntax Include all the run commands of clone, cd, fetch, and pr in one run block not separate steps to simplify the context. --- .github/workflows/stable-releases.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stable-releases.yml b/.github/workflows/stable-releases.yml index c823917a62..3033935451 100644 --- a/.github/workflows/stable-releases.yml +++ b/.github/workflows/stable-releases.yml @@ -6,12 +6,12 @@ jobs: create-release-pull-request: runs-on: ubuntu-latest steps: - - name: clone repo, cd into it, and fetch all - run: gh repo clone FOGProject/fogproject && cd fogproject && git fetch --all - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: create pull request - run: gh pr create -B stable -H dev-branch --title 'Monthly Release PR' --body 'Created by Github action' + run: | + gh repo clone FOGProject/fogproject + cd fogproject + git fetch --all + gh pr create -B stable -H dev-branch --title 'Monthly Release PR' --body 'Created by Github action' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # release-stable: