-
Notifications
You must be signed in to change notification settings - Fork 2
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 (#279)
- Loading branch information
1 parent
7d4aecd
commit 71c7be0
Showing
11 changed files
with
152 additions
and
161 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
PROVIDER: fastly | ||
DOTNETVERSION: | | ||
6.0.x | ||
3.1.301 | ||
6.0.x | ||
3.1.301 | ||
FASTLY_API_KEY: ${{ secrets.FASTLY_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOVERSION: 1.20.1 | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODEVERSION: 16.x | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} | ||
PROVIDER: fastly | ||
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
|
@@ -89,10 +89,10 @@ jobs: | |
- name: Install plugins | ||
run: make install_plugins | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Set PACKAGE_VERSION to Env | ||
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> | ||
$GITHUB_ENV | ||
"$GITHUB_ENV" | ||
- name: Build SDK | ||
run: make build_${{ matrix.language }} | ||
- name: Check worktree clean | ||
|
@@ -166,11 +166,11 @@ jobs: | |
run: cat ${{ env.COVERAGE_OUTPUT_DIR }}/shortSummary.txt | ||
- name: Upload coverage data to S3 | ||
run: >- | ||
summaryName="${PROVIDER}_summary_`date +"%Y-%m-%d_%H-%M-%S"`.json" | ||
summaryName="${PROVIDER}_summary_$(date +"%Y-%m-%d_%H-%M-%S").json" | ||
s3FullURI="s3://${{ secrets.S3_COVERAGE_BUCKET_NAME }}/summaries/${summaryName}" | ||
aws s3 cp ${{ env.COVERAGE_OUTPUT_DIR }}/summary.json ${s3FullURI} --acl bucket-owner-full-control | ||
aws s3 cp "${{ env.COVERAGE_OUTPUT_DIR }}/summary.json" "${s3FullURI}" --acl bucket-owner-full-control | ||
lint: | ||
container: golangci/golangci-lint:v1.51 | ||
name: lint | ||
|
@@ -184,8 +184,7 @@ jobs: | |
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Mark repo as safe directory | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER | ||
}}/pulumi-${{ env.PROVIDER }} | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }} | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
|
@@ -220,8 +219,7 @@ jobs: | |
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Mark repo as safe directory | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER | ||
}}/pulumi-${{ env.PROVIDER }} | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }} | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
|
@@ -274,12 +272,13 @@ jobs: | |
run: make provider | ||
- if: github.event_name == 'pull_request' | ||
name: Check Schema is Valid | ||
run: >- | ||
echo 'SCHEMA_CHANGES<<EOF' >> $GITHUB_ENV | ||
schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV | ||
echo 'EOF' >> $GITHUB_ENV | ||
run: | | ||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
{ | ||
echo "SCHEMA_CHANGES<<$EOF"; | ||
schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json; | ||
echo "$EOF"; | ||
} >> "$GITHUB_ENV" | ||
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' | ||
name: Comment on PR with Details of Schema Check | ||
uses: thollander/actions-comment-pull-request@v2 | ||
|
@@ -341,8 +340,7 @@ jobs: | |
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }} | ||
- name: Set PreRelease Version | ||
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" | ||
>> $GITHUB_ENV | ||
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV" | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
|
@@ -362,7 +360,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Publish SDKs | ||
uses: pulumi/[email protected].6 | ||
uses: pulumi/[email protected].7 | ||
- env: | ||
SLACK_CHANNEL: provider-upgrade-publish-status | ||
SLACK_COLOR: "#FF0000" | ||
|
@@ -445,7 +443,7 @@ jobs: | |
run: tar -zxf ${{ github.workspace }}/sdk/${{ matrix.language }}.tar.gz -C ${{ | ||
github.workspace }}/sdk/${{ matrix.language }} | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
run: |- | ||
pip3 install virtualenv==20.0.23 | ||
|
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
PROVIDER: fastly | ||
DOTNETVERSION: | | ||
6.0.x | ||
3.1.301 | ||
6.0.x | ||
3.1.301 | ||
FASTLY_API_KEY: ${{ secrets.FASTLY_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOVERSION: 1.20.1 | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODEVERSION: 16.x | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} | ||
PROVIDER: fastly | ||
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
|
@@ -89,10 +89,10 @@ jobs: | |
- name: Install plugins | ||
run: make install_plugins | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Set PACKAGE_VERSION to Env | ||
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> | ||
$GITHUB_ENV | ||
"$GITHUB_ENV" | ||
- name: Build SDK | ||
run: make build_${{ matrix.language }} | ||
- name: Check worktree clean | ||
|
@@ -166,11 +166,11 @@ jobs: | |
run: cat ${{ env.COVERAGE_OUTPUT_DIR }}/shortSummary.txt | ||
- name: Upload coverage data to S3 | ||
run: >- | ||
summaryName="${PROVIDER}_summary_`date +"%Y-%m-%d_%H-%M-%S"`.json" | ||
summaryName="${PROVIDER}_summary_$(date +"%Y-%m-%d_%H-%M-%S").json" | ||
s3FullURI="s3://${{ secrets.S3_COVERAGE_BUCKET_NAME }}/summaries/${summaryName}" | ||
aws s3 cp ${{ env.COVERAGE_OUTPUT_DIR }}/summary.json ${s3FullURI} --acl bucket-owner-full-control | ||
aws s3 cp "${{ env.COVERAGE_OUTPUT_DIR }}/summary.json" "${s3FullURI}" --acl bucket-owner-full-control | ||
lint: | ||
container: golangci/golangci-lint:v1.51 | ||
name: lint | ||
|
@@ -184,8 +184,7 @@ jobs: | |
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Mark repo as safe directory | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER | ||
}}/pulumi-${{ env.PROVIDER }} | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }} | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
|
@@ -220,8 +219,7 @@ jobs: | |
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Mark repo as safe directory | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER | ||
}}/pulumi-${{ env.PROVIDER }} | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }} | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
|
@@ -274,12 +272,13 @@ jobs: | |
run: make provider | ||
- if: github.event_name == 'pull_request' | ||
name: Check Schema is Valid | ||
run: >- | ||
echo 'SCHEMA_CHANGES<<EOF' >> $GITHUB_ENV | ||
schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV | ||
echo 'EOF' >> $GITHUB_ENV | ||
run: | | ||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
{ | ||
echo "SCHEMA_CHANGES<<$EOF"; | ||
schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json; | ||
echo "$EOF"; | ||
} >> "$GITHUB_ENV" | ||
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' | ||
name: Comment on PR with Details of Schema Check | ||
uses: thollander/actions-comment-pull-request@v2 | ||
|
@@ -341,8 +340,7 @@ jobs: | |
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }} | ||
- name: Set PreRelease Version | ||
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" | ||
>> $GITHUB_ENV | ||
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV" | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
|
@@ -362,7 +360,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Publish SDKs | ||
uses: pulumi/[email protected].6 | ||
uses: pulumi/[email protected].7 | ||
- env: | ||
SLACK_CHANNEL: provider-upgrade-publish-status | ||
SLACK_COLOR: "#FF0000" | ||
|
@@ -445,7 +443,7 @@ jobs: | |
run: tar -zxf ${{ github.workspace }}/sdk/${{ matrix.language }}.tar.gz -C ${{ | ||
github.workspace }}/sdk/${{ matrix.language }} | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
run: |- | ||
pip3 install virtualenv==20.0.23 | ||
|
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
PROVIDER: fastly | ||
IS_PRERELEASE: true | ||
DOTNETVERSION: | | ||
6.0.x | ||
3.1.301 | ||
6.0.x | ||
3.1.301 | ||
FASTLY_API_KEY: ${{ secrets.FASTLY_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOVERSION: 1.20.1 | ||
IS_PRERELEASE: true | ||
JAVAVERSION: "11" | ||
NODEVERSION: 16.x | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODEVERSION: 16.x | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} | ||
PROVIDER: fastly | ||
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
|
@@ -90,10 +90,10 @@ jobs: | |
- name: Install plugins | ||
run: make install_plugins | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Set PACKAGE_VERSION to Env | ||
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> | ||
$GITHUB_ENV | ||
"$GITHUB_ENV" | ||
- name: Build SDK | ||
run: make build_${{ matrix.language }} | ||
- name: Check worktree clean | ||
|
@@ -134,8 +134,7 @@ jobs: | |
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Mark repo as safe directory | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER | ||
}}/pulumi-${{ env.PROVIDER }} | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }} | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
|
@@ -170,8 +169,7 @@ jobs: | |
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Mark repo as safe directory | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER | ||
}}/pulumi-${{ env.PROVIDER }} | ||
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER }}/pulumi-${{ env.PROVIDER }} | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
|
@@ -224,12 +222,13 @@ jobs: | |
run: make provider | ||
- if: github.event_name == 'pull_request' | ||
name: Check Schema is Valid | ||
run: >- | ||
echo 'SCHEMA_CHANGES<<EOF' >> $GITHUB_ENV | ||
schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV | ||
echo 'EOF' >> $GITHUB_ENV | ||
run: | | ||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
{ | ||
echo "SCHEMA_CHANGES<<$EOF"; | ||
schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json; | ||
echo "$EOF"; | ||
} >> "$GITHUB_ENV" | ||
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' | ||
name: Comment on PR with Details of Schema Check | ||
uses: thollander/actions-comment-pull-request@v2 | ||
|
@@ -291,8 +290,7 @@ jobs: | |
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }} | ||
- name: Set PreRelease Version | ||
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" | ||
>> $GITHUB_ENV | ||
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> "$GITHUB_ENV" | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
|
@@ -312,7 +310,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Publish SDKs | ||
uses: pulumi/[email protected].6 | ||
uses: pulumi/[email protected].7 | ||
- env: | ||
SLACK_CHANNEL: provider-upgrade-publish-status | ||
SLACK_COLOR: "#FF0000" | ||
|
@@ -395,7 +393,7 @@ jobs: | |
run: tar -zxf ${{ github.workspace }}/sdk/${{ matrix.language }}.tar.gz -C ${{ | ||
github.workspace }}/sdk/${{ matrix.language }} | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
run: |- | ||
pip3 install virtualenv==20.0.23 | ||
|
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
Oops, something went wrong.