Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update github workflow actions #2361

Merged
merged 2 commits into from Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Expand Up @@ -15,18 +15,18 @@ jobs:
if: github.repository == 'hashicorp/terraform-cdk'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2.2.1
- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v3.0.11
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('/Dockerfile', '.terraform.versions.json') }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -37,7 +37,7 @@ jobs:
echo "default=$DEFAULT_TERRAFORM_VERSION" >> $GITHUB_OUTPUT
echo "available=$AVAILABLE_TERRAFORM_VERSIONS" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3.2.0
with:
pull: true
push: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/examples.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
examples: ${{ steps.set-examples.outputs.examples }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
- id: set-examples
run: |
tfDefault=$(cat .terraform.versions.json | jq -r '.default')
Expand All @@ -38,11 +38,11 @@ jobs:
CHECKPOINT_DISABLE: "1"
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: Get yarn cache directory path
id: global-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v3.0.11
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-action-upgrade.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.1.0
with:
token: ${{ secrets.GH_TOKEN_ACTIONS_UPDATER }}

Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/integration.yml
Expand Up @@ -28,11 +28,11 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: Get yarn cache directory path
id: global-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v3.0.11
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
Expand All @@ -54,13 +54,13 @@ jobs:
TF_PLUGIN_CACHE_DIR: ${{ steps.global-cache-dir-path.outputs.dir }}/terraform-plugins
GOCACHE: ${{ steps.global-cache-dir-path.outputs.dir }}/go-cache
- name: Upload dist
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.1
if: ${{ !inputs.skip_setup }}
with:
name: dist
path: dist
- name: Upload edge-provider bindings
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.1
if: ${{ !inputs.skip_setup }}
with:
name: edge-provider-bindings
Expand All @@ -86,24 +86,24 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: Get yarn cache directory path
id: global-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
- uses: actions/cache@v3.0.11
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Download dist
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.1
with:
name: dist
path: dist
- name: Download edge-provider bindings
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.1
with:
name: edge-provider-bindings
path: test/edge-provider-bindings
Expand Down Expand Up @@ -131,35 +131,35 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: Get yarn cache directory path
id: global-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
- uses: actions/cache@v3.0.11
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: HashiCorp - Setup Terraform
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v2.0.3
with:
terraform_wrapper: false
terraform_version: ${{ matrix.terraform }}
- name: Install pipenv
run: pip install pipenv
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3.3.1
with:
go-version: 1.18.x
- name: Download dist
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.1
with:
name: dist
path: dist
- name: Download edge-provider bindings
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.1
with:
name: edge-provider-bindings
path: test/edge-provider-bindings
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: installing dependencies
run: |
yarn install
Expand All @@ -27,7 +27,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: installing dependencies
run: |
yarn install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
- uses: dessant/lock-threads@v3.0.0
with:
issue-comment: >
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-labels.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v4.0.2
with:
# The config file lives under .github/labeler.yml
repo-token: "${{ secrets.PULL_REQUEST_LABELER }}"
Expand All @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
name: Label the PR size
steps:
- uses: codelytv/pr-size-labeler@v1
- uses: codelytv/pr-size-labeler@v1.8.1
with:
GITHUB_TOKEN: ${{ secrets.PULL_REQUEST_LABELER }}
xs_label: "size/xs"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-lint.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
# Please look up the latest version from
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/action-semantic-pull-request@v3.4.0
- uses: amannn/action-semantic-pull-request@v5.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project-board.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
if: github.repository == 'hashicorp/terraform-cdk'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: Get project data
env:
GITHUB_TOKEN: ${{ secrets.PROJECT_BOARD_UPDATE_GH_TOKEN }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/provider-integration.yml
Expand Up @@ -24,11 +24,11 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: Get yarn cache directory path
id: global-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v3.0.11
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
Expand All @@ -50,7 +50,7 @@ jobs:
TF_PLUGIN_CACHE_DIR: ${{ steps.global-cache-dir-path.outputs.dir }}/terraform-plugins
GOCACHE: ${{ steps.global-cache-dir-path.outputs.dir }}/go-cache
- name: Upload dist
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.1
with:
name: dist
path: dist
Expand All @@ -72,9 +72,9 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: Download dist
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.1
with:
name: dist
path: dist
Expand All @@ -100,20 +100,20 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.1.0
- name: HashiCorp - Setup Terraform
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v2.0.3
with:
terraform_wrapper: false
terraform_version: ${{ matrix.terraform }}
- name: Install pipenv
run: pip install pipenv
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3.3.1
with:
go-version: 1.16.x
- name: Download dist
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3.0.1
with:
name: dist
path: dist
Expand Down