-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Update GitHub Actions workflow files
- Loading branch information
1 parent
bbb8501
commit 1383118
Showing
12 changed files
with
196 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
provider: alicloud | ||
major-version: 3 | ||
lint: false | ||
parallel: 1 | ||
env: | ||
ALICLOUD_ACCESS_KEY: ${{ secrets.ALICLOUD_ACCESS_KEY }} | ||
ALICLOUD_REGION: "us-west-1" | ||
ALICLOUD_SECRET_KEY: ${{ secrets.ALICLOUD_SECRET_KEY }} | ||
# The maintainers of the TF provider keep misspelled resources around in order | ||
# to avoid breaking changes. We do not want to map these. This means that | ||
# maintainers of the Pulumi repo must manually check the output for missing | ||
# mappings until we are able to explicitly able to tell tfgen that a mapping is | ||
# intentionally ignored. | ||
fail-on-missing-mapping: false | ||
makeTemplate: bridged | ||
plugins: | ||
- name: random | ||
version: "4.3.1" | ||
team: ecosystem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
name: lint | ||
|
||
on: | ||
workflow_call: | ||
inputs: {} | ||
|
||
env: | ||
ALICLOUD_ACCESS_KEY: ${{ secrets.ALICLOUD_ACCESS_KEY }} | ||
ALICLOUD_REGION: us-west-1 | ||
ALICLOUD_SECRET_KEY: ${{ secrets.ALICLOUD_SECRET_KEY }} | ||
DOTNETVERSION: | | ||
6.0.x | ||
3.1.301 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOVERSION: 1.21.x | ||
JAVAVERSION: "11" | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODEVERSION: 20.x | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} | ||
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
PULUMI_API: https://api.pulumi-staging.io | ||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. | ||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget | ||
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
PYTHONVERSION: "3.9" | ||
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} | ||
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
TF_APPEND_USER_AGENT: pulumi | ||
TRAVIS_OS_NAME: linux | ||
|
||
jobs: | ||
lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Install go | ||
uses: actions/setup-go@v4 | ||
with: | ||
# The versions of golangci-lint and setup-go here cross-depend and need to update together. | ||
go-version: 1.21 | ||
# Either this action or golangci-lint needs to disable the cache | ||
cache: false | ||
- name: disarm go:embed directives to enable lint | ||
continue-on-error: true # this fails if there are no go:embed directives | ||
run: | | ||
git grep -l 'go:embed' -- provider | xargs sed -i 's/go:embed/ goembed/g' | ||
- name: prepare upstream | ||
continue-on-error: true | ||
run: make upstream | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.54.1 | ||
working-directory: provider | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
author_name: Failure in linting provider | ||
fields: repo,commit,author,action | ||
status: ${{ job.status }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
name: release-command | ||
on: | ||
repository_dispatch: | ||
types: | ||
- release-command | ||
jobs: | ||
should_release: | ||
name: Should release PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Should release PR | ||
uses: pulumi/action-release-by-pr-label@main | ||
with: | ||
command: "should-release" | ||
repo: ${{ github.repository }} | ||
pr: ${{ github.event.client_payload.pull_request.number }} | ||
version: ${{ github.event.client_payload.slash_command.args.all }} | ||
slack_channel: ${{ secrets.RELEASE_OPS_STAGING_SLACK_CHANNEL }} | ||
env: | ||
RELEASE_BOT_ENDPOINT: ${{ secrets.RELEASE_BOT_ENDPOINT }} | ||
RELEASE_BOT_KEY: ${{ secrets.RELEASE_BOT_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- if: failure() | ||
name: Notify failure | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: ${{ github.event.client_payload.github.payload.repository.full_name }} | ||
issue-number: ${{ github.event.client_payload.github.payload.issue.number }} | ||
body: | | ||
"release command failed: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
- if: success() | ||
name: Notify success | ||
uses: peter-evans/create-or-update-comment@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: ${{ github.event.client_payload.github.payload.repository.full_name }} | ||
comment-id: ${{ github.event.client_payload.github.payload.comment.id }} | ||
reaction-type: hooray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters