Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#546)
Browse files Browse the repository at this point in the history
This PR was automatically generated by the
update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
repo, from commit 4a65e6eff3992cd55e1328a125702b1e7d18eb13.
  • Loading branch information
pulumi-bot authored Aug 6, 2024
1 parent fb6509f commit d6f6049
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 @@ -81,10 +81,12 @@ jobs:
shell: bash
run: |
# Get latest stable release. Return only first column from result (tag).
LAST_VERSION=$(gh release view --repo pulumi/pulumi-mongodbatlas --json tagName -q .tagName)
LAST_VERSION=$(gh release view --repo pulumi/pulumi-mongodbatlas --json tagName -q .tagName || echo "No stable release" )
{
echo 'summary<<EOF'
schema-tools compare --provider="mongodbatlas" --old-commit="$LAST_VERSION" --new-commit="--local-path=provider/cmd/pulumi-resource-mongodbatlas/schema.json"
if [[ "$LAST_VERSION" != "No stable release" ]]; then
schema-tools compare --provider="mongodbatlas" --old-commit="$LAST_VERSION" --new-commit="--local-path=provider/cmd/pulumi-resource-mongodbatlas/schema.json"
fi
echo 'EOF'
} >> "$GITHUB_OUTPUT"
- name: Upload Provider Binaries
Expand Down

0 comments on commit d6f6049

Please sign in to comment.