Skip to content

Commit 990703a

Browse files
authored
[internal] Update GitHub Actions workflow files (#150)
1 parent b012e52 commit 990703a

20 files changed

+54
-71
lines changed

.github/actions/download-bin/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ runs:
55
using: "composite"
66
steps:
77
- name: Download provider + tfgen binaries
8-
uses: actions/download-artifact@v4
8+
uses: actions/download-artifact@v4.1.8
99
with:
1010
name: xyz-provider.tar.gz
1111
path: ${{ github.workspace }}/bin

.github/actions/download-sdk/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010
using: "composite"
1111
steps:
1212
- name: Download ${{ inputs.language }} SDK
13-
uses: actions/download-artifact@v4
13+
uses: actions/download-artifact@v4.1.8
1414
with:
1515
name: ${{ inputs.language }}-sdk.tar.gz
1616
path: ${{ github.workspace}}/sdk/

.github/actions/upload-bin/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
shell: bash
99
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace }}/bin/ pulumi-resource-xyz pulumi-tfgen-xyz
1010
- name: Upload artifacts
11-
uses: actions/upload-artifact@v4
11+
uses: actions/upload-artifact@v4.4.3
1212
with:
1313
name: xyz-provider.tar.gz
1414
path: ${{ github.workspace }}/bin/provider.tar.gz

.github/actions/upload-sdk/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runs:
1313
shell: bash
1414
run: tar -zcf sdk/${{ inputs.language }}.tar.gz -C sdk/${{ inputs.language }} .
1515
- name: Upload artifacts
16-
uses: actions/upload-artifact@v4
16+
uses: actions/upload-artifact@v4.4.3
1717
with:
1818
name: ${{ inputs.language }}-sdk.tar.gz
1919
path: ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz

.github/workflows/build_provider.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
arch: amd64
3131
steps:
3232
- name: Checkout Repo
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v4.2.2
3434
with:
3535
persist-credentials: false
3636
- name: Setup tools
@@ -40,22 +40,19 @@ jobs:
4040
- name: Prepare local workspace before restoring previously built
4141
run: make prepare_local_workspace
4242
- name: Download schema-embed.json
43-
uses: actions/download-artifact@v4
43+
uses: actions/download-artifact@v4.1.8
4444
with:
4545
# Use a pattern to avoid failing if the artifact doesn't exist
4646
pattern: schema-embed.*
4747
# Avoid creating directories for each artifact
4848
merge-multiple: true
4949
path: provider/cmd/pulumi-resource-xyz/schema-embed.json
5050
- name: Restore makefile progress
51-
uses: actions/download-artifact@v4
52-
with:
53-
name: prerequisites.make
54-
path: .make
51+
run: make --touch provider schema
5552
- name: Build & package provider
5653
run: make provider_dist-${{ matrix.platform.os }}-${{ matrix.platform.arch }}
5754
- name: Upload artifacts
58-
uses: actions/upload-artifact@v4
55+
uses: actions/upload-artifact@v4.4.3
5956
with:
6057
name: pulumi-resource-xyz-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
6158
path: bin/pulumi-resource-xyz-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz

.github/workflows/build_sdk.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- python
4141
steps:
4242
- name: Checkout Repo
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@v4.2.2
4444
with:
4545
persist-credentials: false
4646
- name: Cache examples generation
@@ -60,10 +60,7 @@ jobs:
6060
- name: Update path
6161
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
6262
- name: Restore makefile progress
63-
uses: actions/download-artifact@v4
64-
with:
65-
name: prerequisites.make
66-
path: .make
63+
run: make --touch provider schema
6764
- name: Build SDK
6865
run: make build_${{ matrix.language }}
6966
- name: Check worktree clean
@@ -79,9 +76,3 @@ jobs:
7976
uses: ./.github/actions/upload-sdk
8077
with:
8178
language: ${{ matrix.language }}
82-
- name: Save makefile progress
83-
uses: actions/upload-artifact@v4
84-
with:
85-
name: build_${{ matrix.language }}.make
86-
path: .make
87-
include-hidden-files: true

.github/workflows/license.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout Repo
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v4.2.2
3434
with:
3535
persist-credentials: false
3636
- name: Setup tools

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout Repo
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v4.2.2
3434
with:
3535
persist-credentials: false
3636
- name: Install go

.github/workflows/main.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ jobs:
5555
tool-cache: false
5656
swap-storage: false
5757
- name: Checkout Repo
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@v4.2.2
5959
with:
6060
persist-credentials: false
6161
- name: Configure AWS Credentials
62-
uses: aws-actions/configure-aws-credentials@v4
62+
uses: aws-actions/configure-aws-credentials@v4.0.2
6363
with:
6464
aws-access-key-id: ${{ secrets.AWS_CORP_S3_UPLOAD_ACCESS_KEY_ID }}
6565
aws-region: us-west-2
@@ -137,7 +137,7 @@ jobs:
137137
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }}
138138
steps:
139139
- name: Checkout Repo
140-
uses: actions/checkout@v4
140+
uses: actions/checkout@v4.2.2
141141
with:
142142
persist-credentials: false
143143
- name: Setup tools
@@ -153,10 +153,7 @@ jobs:
153153
with:
154154
language: ${{ matrix.language }}
155155
- name: Restore makefile progress
156-
uses: actions/download-artifact@v4
157-
with:
158-
name: build_${{ matrix.language }}.make
159-
path: .make
156+
run: make --touch provider schema build_${{ matrix.language }}
160157
- name: Update path
161158
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
162159
- name: Install Python deps

.github/workflows/prerelease.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }}
8080
steps:
8181
- name: Checkout Repo
82-
uses: actions/checkout@v4
82+
uses: actions/checkout@v4.2.2
8383
with:
8484
persist-credentials: false
8585
- name: Setup tools
@@ -95,10 +95,7 @@ jobs:
9595
with:
9696
language: ${{ matrix.language }}
9797
- name: Restore makefile progress
98-
uses: actions/download-artifact@v4
99-
with:
100-
name: build_${{ matrix.language }}.make
101-
path: .make
98+
run: make --touch provider schema build_${{ matrix.language }}
10299
- name: Update path
103100
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
104101
- name: Install Python deps

0 commit comments

Comments
 (0)