Skip to content

Commit

Permalink
Update versions in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Christdej committed Oct 15, 2024
1 parent 12b8f49 commit 313c9ed
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backend_lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up .NET
uses: actions/setup-dotnet@v4
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up .NET
uses: actions/setup-dotnet@v4
Expand All @@ -46,7 +46,7 @@ jobs:
check_formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/frontend_lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
Expand All @@ -48,7 +48,7 @@ jobs:
working-directory: ./frontend
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Run Prettier
run: npm run prettier_check
Expand All @@ -59,7 +59,7 @@ jobs:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install modules
run: yarn
- name: Run ESLint
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/notifyMigrationChanges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check for previous comment
id: notify_comment_search
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
with:
issue-number: ${{ github.event.number }}
body-includes: ${{ env.message }}

- name: Add comment if no comment exists
if: ${{ !steps.notify_comment_search.outputs.comment-body }}
uses: peter-evans/create-or-update-comment@v2
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.number }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/notifyPossibleMigrationUpdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get changed files in the migrations folder
id: changed_files
uses: tj-actions/changed-files@v35.6.1
uses: tj-actions/changed-files@v45
with:
files: backend/api/Migrations/**
sha: ${{ github.event.pull_request.head.sha }}

- name: If no migrations, check for previous comment
if: ${{ steps.changed_files.outputs.any_changed != 'true' }}
id: notify_comment_search
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
with:
issue-number: ${{ github.event.number }}
body-includes: ${{ env.message }}
Expand All @@ -39,7 +39,7 @@ jobs:
if: |
!steps.notify_comment_search.outputs.comment-body &&
steps.changed_files.outputs.any_changed != 'true'
uses: peter-evans/create-or-update-comment@v2
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.number }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/promote_to_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout infrastructure
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main
repository: equinor/robotics-infrastructure
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to the Github Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ inputs.Registry }}
username: ${{ secrets.RegistryUsername }}
password: ${{ secrets.RegistryPassword }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ inputs.Registry }}/${{ inputs.ImageName }}-${{ inputs.ComponentName }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: ./${{ inputs.ComponentName }}
push: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scan_with_trufflehog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: TruffleHog OSS
id: trufflehog
uses: trufflesecurity/trufflehog@v3.63.1
uses: trufflesecurity/trufflehog@v3.82.7
continue-on-error: true
with:
path: ./
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/updateDatabase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: React to comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: confused, -1

- name: Add comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
Expand All @@ -90,13 +90,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: React to comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ github.event.comment.id }}
reactions: rocket, +1

- name: Add comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
Expand All @@ -120,7 +120,7 @@ jobs:
pull-requests: write
steps:
- name: Add comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
Expand All @@ -135,7 +135,7 @@ jobs:
pull-requests: write
steps:
- name: Add comment
uses: peter-evans/create-or-update-comment@v3
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_aurora_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
NAME: ${{ inputs.AuthorName }}
steps:
- name: Checkout infrastructure
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main
repository: equinor/robotics-infrastructure
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/verifyMigrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: ${{ github.event_name == 'pull_request_target' }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get changed files in the migrations folder
id: changed-files-specific
Expand All @@ -24,14 +24,14 @@ jobs:
- name: If files changed, check for database success
if: ${{ steps.changed-files-specific.outputs.any_changed == 'true' }}
id: database_comment_search
uses: peter-evans/find-comment@v2
uses: peter-evans/find-comment@v3
with:
issue-number: ${{ github.event.number }}
body-includes: ${{ env.success_message }}
comment-author: github-actions[bot]

- name: Fail if files changed & no database success (comment not found)
if: |
steps.changed-files-specific.outputs.any_changed == 'true' &&
steps.changed-files-specific.outputs.any_changed == 'true' &&
!steps.database_comment_search.outputs.comment-body
run: exit 1

0 comments on commit 313c9ed

Please sign in to comment.