From d47dceeba06930828829558b7a6f02530072f762 Mon Sep 17 00:00:00 2001 From: JC Palmes Date: Mon, 26 Aug 2024 23:00:02 +0800 Subject: [PATCH] Update version-update.yml Corrected Workflow with Shell Evaluation for Branch Name --- .github/workflows/version-update.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/version-update.yml b/.github/workflows/version-update.yml index 180c066..99b5232 100644 --- a/.github/workflows/version-update.yml +++ b/.github/workflows/version-update.yml @@ -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" @@ -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