Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#604)
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 52a4a4ba4be7dfa9128b136bbec1df4bfda8b5d3.
  • Loading branch information
pulumi-bot authored Feb 7, 2025
1 parent 31c3ae3 commit 7e342b5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/prerequisites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
id: provider-version
with:
major-version: 3
set-env: 'PROVIDER_VERSION'
- name: Cache examples generation
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ jobs:
path: dist
# Don't create a directory for each artifact
merge-multiple: true
- name: Download schema
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: dist
- name: Calculate checksums
working-directory: dist
run: shasum ./*.tar.gz > "pulumi-consul_${{ inputs.version }}_checksums.txt"
Expand Down
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,9 @@ bin/$(CODEGEN): provider/*.go provider/go.* .make/upstream

# Apply patches to the upstream submodule, if it exists
upstream: .make/upstream
# Re-run if the upstream commit or the patches change
.make/upstream: $(wildcard patches/*) $(shell ./upstream.sh file_target)
ifneq ("$(wildcard upstream)","")
./upstream.sh init
endif
# Re-run if the upstream commit or the patches change.
.make/upstream: $(wildcard patches/*) $(shell ./scripts/upstream.sh file_target)
./scripts/upstream.sh init
@touch $@
.PHONY: upstream

Expand Down
5 changes: 4 additions & 1 deletion upstream.sh → scripts/upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ init() {
esac
done

assert_upstream_exists
if [[ ! -d upstream ]]; then
echo "No 'upstream' directory detected. Skipping init."
exit 0
fi

if [[ "${force}" != "true" ]]; then
assert_not_checked_out
Expand Down

0 comments on commit 7e342b5

Please sign in to comment.