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

use latest major version for github actions #3676

Merged
merged 7 commits into from
Feb 21, 2025
10 changes: 5 additions & 5 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# First, we want to install yarn since our base image doesn't have it installed
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
- uses: actions/setup-node@v4
with:
# This doesn't use cache: 'yarn' as the base image doesn't have it, and we're caching node_modules
node-version: 22
Expand All @@ -50,7 +50,7 @@ runs:
- name: Restore yarn cache
id: restore-yarn-cache
if: inputs.skip-cache != 'true'
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache/restore@v4
with:
# Restrict it to the run and attempt for debugging purposes, but in theory
# these should be fine to persist between runs as well
Expand All @@ -70,7 +70,7 @@ runs:
shell: bash
- name: Cache yarn cache
if: steps.restore-yarn-cache.outputs.cache-hit != 'true' && inputs.skip-cache != 'true'
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache/save@v4
with:
key: yarn_cache-${{ hashFiles('./yarn.lock') }}-${{ github.run_id }}-${{ github.run_attempt }}
path: |
Expand All @@ -80,7 +80,7 @@ runs:
# Build TS files unless it's been specified otherwise
- name: Restore TS built files if present
id: restore-ts-build
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache/restore@v4
if: |
inputs.skip-setup != 'true'
&& inputs.skip-cache != 'true'
Expand Down Expand Up @@ -157,7 +157,7 @@ runs:
if: |
inputs.skip-setup != 'true'
&& inputs.skip-cache != 'true'
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache/save@v4
with:
key: tsbuild-${{ github.sha }}-${{ github.run_id }}
path: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ['ubuntu-latest']
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check whether adapter change also has a changeset
Expand All @@ -40,7 +40,7 @@ jobs:
adapter-list: ${{ steps.changed-adapters.outputs.CHANGED_ADAPTERS }}
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up and install dependencies
Expand All @@ -63,7 +63,7 @@ jobs:
- install-packages
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
- name: Set up and install dependencies
uses: ./.github/actions/setup
- name: Run unit tests
Expand All @@ -81,7 +81,7 @@ jobs:
- install-packages
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
- name: Set up and install dependencies
uses: ./.github/actions/setup
- name: Run integration tests
Expand All @@ -98,7 +98,7 @@ jobs:
- install-packages
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
- name: Set up and install dependencies
uses: ./.github/actions/setup
- name: Lint all files
Expand All @@ -118,7 +118,7 @@ jobs:
METRICS_ENABLED: false
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up and install dependencies
Expand All @@ -138,7 +138,7 @@ jobs:
- install-packages
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
- name: Set up and install dependencies
uses: ./.github/actions/setup
- name: Check for outdated ea-framework dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
tmp-branch: ${{ steps.push-branch.outputs.TMP_BRANCH }}
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up and install dependencies
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
IMAGE_VERSION: ${{ matrix.adapter.version }}
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
ref: ${{ needs.calculate-changes.outputs.tmp-branch }}
- name: Build the adapter image
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
if: always() && needs.calculate-changes.outputs.adapter-list != '[]'
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
ref: ${{ needs.calculate-changes.outputs.tmp-branch }}
- name: Delete ephemeral branch
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
adapter-list: ${{ steps.changed-adapters.outputs.CHANGED_ADAPTERS }}
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up and install dependencies
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
ECR_REPO: adapters/${{ matrix.adapter.shortName }}-adapter
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
- name: Configure AWS Credentials for SDLC Private ECR
uses: aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
with:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
- name: Get release version
id: get-version
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/soak-test-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}
aws-role-duration-seconds: '3600' # this is optional and defaults to 900
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
fetch-depth: 2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upsert-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
BUILD_ALL: ${{ github.event.inputs.build-all }}
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
Expand Down
Loading