Skip to content

Commit

Permalink
UPdate github actions to use node.js 20 (coralogix#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyrenny authored May 7, 2024
1 parent 7efed57 commit 0fbd4f6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
steps:
- name: Get PR labels
id: pr-labels
uses: joerick/[email protected].8
uses: joerick/[email protected].9

check-changelog-updates:
if: "${{ needs.get-label.outputs.labels != ' skip-changelog ' }}"
runs-on: ubuntu-latest
needs: get-label
name: Check changelog update
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/Synchronizing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
packages: ${{ env.packages }}
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Read matrix YAML
id: read-matrix
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
touch template-readme-directory/file.tmp
- name: Upload template-readme-directory
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: template-readme-directory
path: ./template-readme-directory/
Expand All @@ -39,7 +39,7 @@ jobs:
run: touch change_file_list.txt

- name: Upload changes file list
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: change_file_list
path: change_file_list.txt
Expand All @@ -53,9 +53,9 @@ jobs:
package: ${{ fromJSON(needs.Get-matrix.outputs.packages) }}
max-parallel: 1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
with:
filters: |
'${{ matrix.package }}':
Expand Down Expand Up @@ -89,14 +89,14 @@ jobs:
- if: steps.changes.outputs[matrix.package] == 'true'
name: Upload template-readme-directory
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: template-readme-directory
path: ./template-readme-directory/

- if: steps.changes.outputs[matrix.package] == 'true'
name: Download change_file_list
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: change_file_list

Expand All @@ -106,7 +106,7 @@ jobs:

- if: steps.changes.outputs[matrix.package] == 'true'
name: Upload change_file_list
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: change_file_list
path: change_file_list.txt
Expand All @@ -117,7 +117,7 @@ jobs:
steps:

- name: Checkout destination repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: coralogix/cloudformation-coralogix-aws
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -126,13 +126,13 @@ jobs:
run: mkdir ./template-readme-directory

- name: Download template-readme-directory
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: template-readme-directory
path: ./template-readme-directory

- name: Download change_file_list
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: change_file_list

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
packages: ${{ steps.get-changed-packages.outputs.packages }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
Expand All @@ -39,14 +39,14 @@ jobs:
package: ${{ fromJSON(needs.check.outputs.packages) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: aws-actions/setup-sam@v2
with:
use-installer: true

- if: ${{ matrix.package != 'helper' }}
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -68,14 +68,14 @@ jobs:
package: ${{ fromJSON(needs.check.outputs.packages) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: aws-actions/setup-sam@v2
with:
use-installer: true

- if: ${{ matrix.package != 'helper' }}
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
name: ${{ matrix.package }}-packaged.yaml

- if: ${{ matrix.package != 'helper' }}
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
AWS_SERVERLESS_BUCKET: coralogix-serverless-repo
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Init
working-directory: infra/
Expand All @@ -42,7 +42,7 @@ jobs:
packages: ${{ steps.get-changed-packages.outputs.packages }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
Expand All @@ -63,7 +63,7 @@ jobs:
package: ${{ fromJSON(needs.check.outputs.packages) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Validate
working-directory: src/${{ matrix.package }}
Expand All @@ -79,7 +79,7 @@ jobs:
package: ${{ fromJSON(needs.check.outputs.packages) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build
working-directory: ./src/${{ matrix.package }}
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Store
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.package }}-packaged.yaml
path: src/${{ matrix.package }}/packaged.yaml
Expand All @@ -113,7 +113,7 @@ jobs:
package: ${{ fromJSON(needs.check.outputs.packages) }}
steps:
- name: Download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.package }}-packaged.yaml

Expand Down

0 comments on commit 0fbd4f6

Please sign in to comment.