fix inputs and published package parsing
This commit is contained in:
@@ -30,7 +30,7 @@ jobs:
|
||||
id: get_tag
|
||||
uses: ./.github/actions/get-image-tag
|
||||
with:
|
||||
tag: ${{ github.event.inputs.image_tag }}
|
||||
tag: ${{ inputs.image_tag }}
|
||||
|
||||
- name: 🔢 Get the commit hash
|
||||
id: get_commit
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: "🚢 Publish Worker"
|
||||
name: "⚒️ Publish Worker"
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
- id: get_tag
|
||||
uses: ./.github/actions/get-image-tag
|
||||
with:
|
||||
tag: ${{ github.event.inputs.image_tag }}
|
||||
tag: ${{ inputs.image_tag }}
|
||||
|
||||
- name: 🐋 Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@@ -62,11 +62,11 @@ jobs:
|
||||
uses: ./.github/workflows/publish-webapp.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
image_tag: ${{ github.event.inputs.image_tag }}
|
||||
image_tag: ${{ inputs.image_tag }}
|
||||
|
||||
publish-worker:
|
||||
needs: [typecheck, units]
|
||||
uses: ./.github/workflows/publish-worker.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
image_tag: ${{ github.event.inputs.image_tag }}
|
||||
image_tag: ${{ inputs.image_tag }}
|
||||
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
if: steps.changesets.outputs.published == 'true'
|
||||
id: get_version
|
||||
run: |
|
||||
package_version=$(echo ${{ steps.changesets.outputs.publishedPackages }} | jq '.[0].version')
|
||||
package_version=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[0].version')
|
||||
echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
publish:
|
||||
|
||||
Reference in New Issue
Block a user