generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (#210)
- Loading branch information
1 parent
13c7383
commit da579a1
Showing
4 changed files
with
100 additions
and
4 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
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,69 @@ | ||
name: "Verify Release" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
providerVersion: | ||
description: "The version of the provider to verify" | ||
required: true | ||
type: string | ||
enableMacRunner: | ||
description: "Enable the MacOS runner in addition to Linux and Windows. Defaults to 'false'." | ||
required: false | ||
type: boolean | ||
workflow_call: | ||
inputs: | ||
providerVersion: | ||
description: "The version of the provider to verify" | ||
required: true | ||
type: string | ||
enableMacosRunner: | ||
description: "Enable the macos-latest runner in addition to ubuntu-latest and windows-latest. Defaults to 'false'." | ||
required: false | ||
type: boolean | ||
default: false | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
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 | ||
PULUMI_MISSING_DOCS_ERROR: true | ||
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
PYPI_USERNAME: __token__ | ||
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 | ||
XYZ_REGION: us-west-2 | ||
|
||
jobs: | ||
verify-release: | ||
name: verify-release | ||
strategy: | ||
matrix: | ||
# We always run on Linux and Windows, and optionally on MacOS. This is because MacOS runners have limited availability. | ||
# Expression expands to ["ubuntu-latest","windows-latest"] or ["ubuntu-latest","windows-latest","macos-latest"] | ||
# GitHub expressions don't have 'if' statements, so we use a ternary operator to conditionally include the MacOS runner suffix. | ||
# See the docs for a similar example to this: https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson | ||
runner: ${{ fromJSON(format('["ubuntu-latest","windows-latest"{0}]', github.event.inputs.enableMacRunner == 'true' && ',"macos-latest"' || '')) }} | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
- name: Verify nodejs release | ||
uses: pulumi/verify-provider-release@v1 | ||
with: | ||
runtime: nodejs | ||
directory: examples/basic | ||
provider: xyz | ||
providerVersion: ${{ inputs.providerVersion }} |
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