Skip to content

Commit

Permalink
Update version-update.yml
Browse files Browse the repository at this point in the history
Corrected Workflow with Shell Evaluation for Branch Name
  • Loading branch information
khleomix authored Aug 26, 2024
1 parent e15afe8 commit d47dcee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/version-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Create a new branch for the version update
env:
BRANCH_NAME: version-update-$(date +%s)
run: |
BRANCH_NAME="version-update-$(date +%s)"
git checkout -b $BRANCH_NAME
git add .env style.css package.json composer.json
git commit -m "Automated version update after merge to main"
Expand All @@ -42,7 +41,7 @@ jobs:
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.BRANCH_NAME }}
branch: version-update-${{ steps.update-version.outputs.BRANCH_NAME }}
title: "Automated Version Update"
body: "This pull request contains the automated version and build updates."
base: main

0 comments on commit d47dcee

Please sign in to comment.