Skip to content

Commit

Permalink
chore: update github workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and DanielMSchmidt committed Dec 5, 2022
1 parent 2f69e12 commit 393ceac
Show file tree
Hide file tree
Showing 18 changed files with 93 additions and 93 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 --frozen-lockfile
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 --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,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 @@ -49,7 +49,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 @@ -71,9 +71,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 @@ -99,20 +99,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
Loading

0 comments on commit 393ceac

Please sign in to comment.