Skip to content

Commit

Permalink
Upgrade terraform provider GitHub to v6.0.0 (#569)
Browse files Browse the repository at this point in the history
Fixes #568
  • Loading branch information
iwahbe committed Feb 20, 2024
1 parent f5193b6 commit 7ec2b43
Show file tree
Hide file tree
Showing 250 changed files with 4,670 additions and 1,819 deletions.
6 changes: 5 additions & 1 deletion .ci-mgmt.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
provider: github
major-version: 5
major-version: 6
env:
GH_ORGANIZATION: ${{ secrets.GH_ORGANIZATION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TESTING_TOKEN: ${{ secrets.GH_TESTING_TOKEN }}
VERSION_PREFIX: 6.0.0
makeTemplate: bridged
team: ecosystem
plugins:
- name: tls
version: "5.0.1"
1 change: 1 addition & 0 deletions .github/workflows/command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0
jobs:
command-dispatch-for-testing:
name: command-dispatch-for-testing
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0

jobs:
license_check:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0

jobs:
lint:
Expand All @@ -58,7 +59,7 @@ jobs:
continue-on-error: true
run: make upstream
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.55.2
working-directory: provider
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0
jobs:
build_sdk:
name: build_sdk
Expand Down Expand Up @@ -315,7 +316,7 @@ jobs:
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0
jobs:
build_sdk:
name: build_sdk
Expand Down Expand Up @@ -258,7 +259,7 @@ jobs:
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0
jobs:
comment-on-pr:
if: github.event.pull_request.head.repo.full_name != github.repository
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0
jobs:
build_sdk:
name: build_sdk
Expand Down Expand Up @@ -272,7 +273,7 @@ jobs:
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
args: -p 3 release --rm-dist --timeout 60m0s
version: latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/resync-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0
jobs:
resync_build:
name: resync-build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TF_APPEND_USER_AGENT: pulumi
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 6.0.0

# This should cancel any previous runs of the same workflow on the same branch which are still running.
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ builds:
- env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache
ignore: []
ldflags:
- -X github.com/pulumi/pulumi-github/provider/v5/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-github/provider/v6/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-github/
changelog:
skip: true
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ builds:
- env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache
ignore: []
ldflags:
- -X github.com/pulumi/pulumi-github/provider/v5/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-github/provider/v6/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-github/
changelog:
filters:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PACK := github
ORG := pulumi
PROJECT := github.com/$(ORG)/pulumi-$(PACK)
PROVIDER_PATH := provider/v5
PROVIDER_PATH := provider/v6
VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version
TFGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
Expand Down Expand Up @@ -94,6 +94,7 @@ install_nodejs_sdk:
yarn link --cwd $(WORKING_DIR)/sdk/nodejs/bin

install_plugins: .pulumi/bin/pulumi
.pulumi/bin/pulumi plugin install resource tls 5.0.1

lint_provider: provider
cd provider && golangci-lint run -c ../.golangci.yml
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://travis-ci.com/pulumi/pulumi-github.svg?token=eHg7Zp5zdDDJfTjY8ejq&branch=master)](https://travis-ci.com/pulumi/pulumi-github)

# GitHub provider

The GitHub resource provider for Pulumi lets you use GitHub resources in your infrastructure programs.
Expand Down Expand Up @@ -29,7 +27,7 @@ To use from Python, install using `pip`:

To use from Go, use `go get` to grab the latest version of the library

$ go get github.com/pulumi/pulumi-github/sdk/v5
$ go get github.com/pulumi/pulumi-github/sdk/v6

### .NET

Expand Down

0 comments on commit 7ec2b43

Please sign in to comment.