From 84b3746c44380a440d2d9f0f68a452c4ce3e8e35 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 22 Dec 2022 11:39:00 -0700 Subject: [PATCH] chore: update aur job in publish.yaml This uses the `env.VERSION` which should fix the issue with version being blank. --- .github/workflows/publish.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 42aa1f32212b..3e1ec567df40 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -137,12 +137,14 @@ jobs: - name: Open PR # We need to git push -u otherwise gh will prompt # asking where to push the branch. + env: + VERSION: ${{ env.VERSION }} run: | - git checkout -b update-version-${{ steps.version.outputs.version }} + git checkout -b update-version-${{ env.VERSION }} git add . - git commit -m "chore: updating version to ${{ steps.version.outputs.version }}" + git commit -m "chore: updating version to ${{ env.VERSION }}" git push -u origin $(git branch --show) - gh pr create --repo coder/code-server-aur --title "chore: bump version to ${{ steps.version.outputs.version }}" --body "PR opened by @$GITHUB_ACTOR" --assignee $GITHUB_ACTOR + gh pr create --repo coder/code-server-aur --title "chore: bump version to ${{ env.VERSION }}" --body "PR opened by @$GITHUB_ACTOR" --assignee $GITHUB_ACTOR docker: runs-on: ubuntu-20.04 steps: