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
- Loading branch information
1 parent
27b3891
commit 041ad7b
Showing
23 changed files
with
76 additions
and
46 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
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
arch: amd64 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Setup tools | ||
|
@@ -40,19 +40,22 @@ jobs: | |
- name: Prepare local workspace before restoring previously built | ||
run: make prepare_local_workspace | ||
- name: Download schema-embed.json | ||
uses: actions/download-artifact@v4 | ||
uses: actions/download-artifact@v4.1.8 | ||
with: | ||
# Use a pattern to avoid failing if the artifact doesn't exist | ||
pattern: schema-embed.* | ||
# Avoid creating directories for each artifact | ||
merge-multiple: true | ||
path: provider/cmd/pulumi-resource-xyz/schema-embed.json | ||
- name: Restore makefile progress | ||
run: make --touch provider schema | ||
uses: actions/[email protected] | ||
with: | ||
name: prerequisites.make | ||
path: .make | ||
- name: Build & package provider | ||
run: make provider_dist-${{ matrix.platform.os }}-${{ matrix.platform.arch }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v4.4.3 | ||
with: | ||
name: pulumi-resource-xyz-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz | ||
path: bin/pulumi-resource-xyz-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz | ||
|
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
- java | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Cache examples generation | ||
|
@@ -63,7 +63,10 @@ jobs: | |
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Restore makefile progress | ||
run: make --touch provider schema | ||
uses: actions/[email protected] | ||
with: | ||
name: prerequisites.make | ||
path: .make | ||
- name: Build SDK | ||
run: make build_${{ matrix.language }} | ||
- name: Check worktree clean | ||
|
@@ -79,3 +82,9 @@ jobs: | |
uses: ./.github/actions/upload-sdk | ||
with: | ||
language: ${{ matrix.language }} | ||
- name: Save makefile progress | ||
uses: actions/[email protected] | ||
with: | ||
name: build_${{ matrix.language }}.make | ||
path: .make | ||
include-hidden-files: true |
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 |
---|---|---|
|
@@ -57,11 +57,11 @@ jobs: | |
tool-cache: false | ||
swap-storage: false | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
uses: aws-actions/configure-aws-credentials@v4.0.2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_CORP_S3_UPLOAD_ACCESS_KEY_ID }} | ||
aws-region: us-west-2 | ||
|
@@ -139,7 +139,7 @@ jobs: | |
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Setup tools | ||
|
@@ -155,7 +155,10 @@ jobs: | |
with: | ||
language: ${{ matrix.language }} | ||
- name: Restore makefile progress | ||
run: make --touch provider schema build_${{ matrix.language }} | ||
uses: actions/[email protected] | ||
with: | ||
name: build_${{ matrix.language }}.make | ||
path: .make | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
|
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 |
---|---|---|
|
@@ -81,7 +81,7 @@ jobs: | |
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Setup tools | ||
|
@@ -97,7 +97,10 @@ jobs: | |
with: | ||
language: ${{ matrix.language }} | ||
- name: Restore makefile progress | ||
run: make --touch provider schema build_${{ matrix.language }} | ||
uses: actions/[email protected] | ||
with: | ||
name: build_${{ matrix.language }}.make | ||
path: .make | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
|
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 |
---|---|---|
|
@@ -45,7 +45,7 @@ jobs: | |
version: ${{ steps.provider-version.outputs.version }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- uses: pulumi/provider-version-action@v1 | ||
|
@@ -79,9 +79,15 @@ jobs: | |
schema-tools compare -r github://api.github.com/pulumi -p xyz -o "${{ inputs.default_branch }}" -n --local-path=provider/cmd/pulumi-resource-xyz/schema.json; | ||
echo "$EOF"; | ||
} >> "$GITHUB_ENV" | ||
- name: Save makefile progress | ||
uses: actions/[email protected] | ||
with: | ||
name: prerequisites.make | ||
path: .make | ||
include-hidden-files: true | ||
- if: inputs.is_pr && inputs.is_automated == false | ||
name: Comment on PR with Details of Schema Check | ||
uses: thollander/actions-comment-pull-request@v2 | ||
uses: thollander/actions-comment-pull-request@v2.5.0 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
comment_tag: schemaCheck | ||
|
@@ -95,7 +101,7 @@ jobs: | |
uses: ./.github/actions/upload-bin | ||
|
||
- name: Upload schema-embed.json | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v4.4.3 | ||
with: | ||
name: schema-embed.json | ||
path: provider/cmd/pulumi-resource-xyz/schema-embed.json | ||
|
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 |
---|---|---|
|
@@ -87,7 +87,7 @@ jobs: | |
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Setup tools | ||
|
@@ -103,7 +103,10 @@ jobs: | |
with: | ||
language: ${{ matrix.language }} | ||
- name: Restore makefile progress | ||
run: make --touch provider schema build_${{ matrix.language }} | ||
uses: actions/[email protected] | ||
with: | ||
name: build_${{ matrix.language }}.make | ||
path: .make | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
|
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 |
---|---|---|
|
@@ -129,13 +129,13 @@ jobs: | |
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
ref: ${{ env.PR_COMMIT_SHA }} | ||
persist-credentials: false | ||
- name: Checkout p/examples | ||
if: matrix.testTarget == 'pulumiExamples' | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.2.2 | ||
with: | ||
repository: pulumi/examples | ||
path: p-examples | ||
|
@@ -152,7 +152,10 @@ jobs: | |
with: | ||
language: ${{ matrix.language }} | ||
- name: Restore makefile progress | ||
run: make --touch provider schema build_${{ matrix.language }} | ||
uses: actions/[email protected] | ||
with: | ||
name: build_${{ matrix.language }}.make | ||
path: .make | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
|
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
Oops, something went wrong.