Skip to content

Commit

Permalink
[internal] Update GitHub Actions workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Aug 5, 2024
1 parent 87920fa commit 842466b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ jobs:
shell: bash
run: |
# Get latest stable release. Return only first column from result (tag).
LAST_VERSION=$(gh release view --repo pulumi/pulumi-xyz --json tagName -q .tagName)
LAST_VERSION=$(gh release view --repo pulumi/pulumi-xyz --json tagName -q .tagName || "No stable release" )
{
echo 'summary<<EOF'
schema-tools compare --provider="xyz" --old-commit="$LAST_VERSION" --new-commit="--local-path=provider/cmd/pulumi-resource-xyz/schema.json"
if [[ "$LAST_VERSION" != "No stable release" ]]; then
schema-tools compare --provider="xyz" --old-commit="$LAST_VERSION" --new-commit="--local-path=provider/cmd/pulumi-resource-xyz/schema.json"
fi
echo 'EOF'
} >> "$GITHUB_OUTPUT"
- name: Upload Provider Binaries
Expand Down

0 comments on commit 842466b

Please sign in to comment.