Skip to content

Commit

Permalink
using variables
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-quix committed Jun 6, 2024
1 parent 6587eea commit dad6c8c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down

0 comments on commit dad6c8c

Please sign in to comment.