Skip to content

Commit d6f6049

Browse files
authored
Update GitHub Actions workflows. (#546)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 4a65e6eff3992cd55e1328a125702b1e7d18eb13.
1 parent fb6509f commit d6f6049

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@ jobs:
8181
shell: bash
8282
run: |
8383
# Get latest stable release. Return only first column from result (tag).
84-
LAST_VERSION=$(gh release view --repo pulumi/pulumi-mongodbatlas --json tagName -q .tagName)
84+
LAST_VERSION=$(gh release view --repo pulumi/pulumi-mongodbatlas --json tagName -q .tagName || echo "No stable release" )
8585
{
8686
echo 'summary<<EOF'
87-
schema-tools compare --provider="mongodbatlas" --old-commit="$LAST_VERSION" --new-commit="--local-path=provider/cmd/pulumi-resource-mongodbatlas/schema.json"
87+
if [[ "$LAST_VERSION" != "No stable release" ]]; then
88+
schema-tools compare --provider="mongodbatlas" --old-commit="$LAST_VERSION" --new-commit="--local-path=provider/cmd/pulumi-resource-mongodbatlas/schema.json"
89+
fi
8890
echo 'EOF'
8991
} >> "$GITHUB_OUTPUT"
9092
- name: Upload Provider Binaries

0 commit comments

Comments
 (0)