Skip to content

Commit

Permalink
fix branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Jun 27, 2024
1 parent a51c90f commit ab56c5b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/deploy-dev-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ jobs:
fi
echo "testing"
get-branch:
runs-on: ubuntu-latest
outputs:
branch: $={{ steps.get_branch.outputs.branch }}

steps:
- name: Get branch name
id: get_branch
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
env:
GITHUB_REF: ${{ github.ref }}

buildDeployDevTS:
needs: detect-language
if: needs.detect-language.outputs.language == 'typescript'
Expand Down Expand Up @@ -172,7 +184,7 @@ jobs:
include_chart: ${{ inputs.include_chart }}

buildDeployDevJSPrerelease:
needs: detect-language
needs: [detect-language, get-branch]
if: needs.detect-language.outputs.language == 'javascript' && inputs.prerelease_branch
uses: ./.github/workflows/build-deploy-js.yml
secrets:
Expand All @@ -186,7 +198,7 @@ jobs:
GH_GCP_TOKEN: ${{ secrets.GH_GCP_TOKEN }}
with:
env: ${{ inputs.env }}
update_version_command: npm version prerelease --preid=${{ inputs.branch }} --no-git-tag-version
update_version_command: npm version prerelease --preid=${{ needs.get-branch.outputs.branch }} --no-git-tag-version
update_version: ${{ inputs.update_version }}
cloud_deploy: false
needs_build: ${{ inputs.needs_build }}
Expand Down

0 comments on commit ab56c5b

Please sign in to comment.