Skip to content

Commit

Permalink
fix: temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
codechirag123 committed Dec 27, 2024
1 parent 44c92cf commit a14a72f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build-push-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
if: inputs.image_name == 'workflows-service-ee'
id: get-secret
run: |
echo ${{ inputs.image_name }}
secret_value=$(aws secretsmanager get-secret-value --secret-id ${{ vars.PREVIEW_SECRET }} --query 'SecretString' --output text | jq -r '.SUBMODULE_SECRET')
echo "SUBMODULE_SECRET=$secret_value" >> $GITHUB_ENV
echo "SUBMODULE_SECRET=$secret_value" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -88,21 +89,22 @@ jobs:
# run: git fetch --tags origin

- name: Get version
if: (${{ inputs.image_name }} == 'workflows-service' && ${{inputs.image_name}} != 'workflows-service-ee')
if: ${{ inputs.image_name }} == 'workflows-service'
id: version
run: |
git fetch --tags origin
TAG=$(git tag -l "$(echo workflow-service@)*" | sort -V -r | head -n 1)
echo "tag=$TAG"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
echo "TAG=$TAG" >> "$GITHUB_ENV"
SHORT_SHA=$(git rev-parse --short HEAD)
echo "sha_short=$SHORT_SHA" >> "$GITHUB_OUTPUT"
echo "SHORT_SHA=$SHORT_SHA" >> "$GITHUB_ENV"
echo ${{ inputs.image_name }}
# git fetch --tags origin
# TAG=$(git tag -l "$(echo workflow-service@)*" | sort -V -r | head -n 1)
# echo "tag=$TAG"
# echo "tag=$TAG" >> "$GITHUB_OUTPUT"
# echo "TAG=$TAG" >> "$GITHUB_ENV"
# SHORT_SHA=$(git rev-parse --short HEAD)
# echo "sha_short=$SHORT_SHA" >> "$GITHUB_OUTPUT"
# echo "SHORT_SHA=$SHORT_SHA" >> "$GITHUB_ENV"
- name: Bump version
id: bump-version
if: (${{ inputs.image_name }} == 'workflows-service' && ${{inputs.image_name}} != 'workflows-service-ee')
if: ${{ inputs.image_name }} == 'workflows-service'
uses: ./.github/actions/bump-version
with:
tag: ${{ steps.version.outputs.tag }}
Expand Down

0 comments on commit a14a72f

Please sign in to comment.