Skip to content

Commit

Permalink
Handle missing branches explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Oct 12, 2023
1 parent 4393dd0 commit 4e36e75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions provider-ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ format:
go fmt ./...

providers/%/config.yaml: F=providers/$*/config.yaml
providers/%/config.yaml: B=$(shell gh repo view pulumi/pulumi-$* --json=defaultBranchRef --jq='.defaultBranchRef.name')
providers/%/config.yaml:
mkdir -p $(dir $F)
curl "https://raw.githubusercontent.com/pulumi/pulumi-$*/master/.ci-mgmt.yaml" > $F
curl "https://raw.githubusercontent.com/pulumi/pulumi-$*/$B/.ci-mgmt.yaml" > $F

providers/%/repo: bin/provider-ci providers/%/config.yaml
@./bin/provider-ci generate \
Expand All @@ -44,7 +45,7 @@ providers/%/repo: bin/provider-ci providers/%/config.yaml
@touch ./providers/$*/repo
@echo "Generated providers/$*/repo"

lint-providers/%/repo: $(ACTIONLINT) providers/%/repo
lint-providers/%/repo: $(ACTIONLINT) providers/%/repo providers/%/config.yaml
@echo Linting $*
# Running actionlint in the context of a temporary .git repo so under
# providers/pulumi-xyz/repo so that it checks
Expand Down

0 comments on commit 4e36e75

Please sign in to comment.