From dad6c8c8a3224a55f2dd3ad8f44736a32bb66cf9 Mon Sep 17 00:00:00 2001 From: Emanuel Ramos Date: Thu, 6 Jun 2024 13:31:42 +0100 Subject: [PATCH] using variables --- .github/workflows/release-docs.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-docs.yml b/.github/workflows/release-docs.yml index 50bc1b7..551f69d 100644 --- a/.github/workflows/release-docs.yml +++ b/.github/workflows/release-docs.yml @@ -37,7 +37,9 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' - name: Create new branch - run: git checkout -b update-changelog + run: | + branch_name="update-changelog" + git checkout -b $branch_name - name: Commit changes run: | @@ -49,14 +51,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git - git push origin update-changelog + git push origin $branch_name - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update CHANGELOG and docs for release $GITHUB_REF_NAME - branch: update-changelog + branch: $branch_name title: "Update CHANGELOG and docs for release $GITHUB_REF_NAME" base: main # Change the base branch to the appropriate one body: |