Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
[MGDOBR-1152] - Update GH actions to use Node.js 16
Browse files Browse the repository at this point in the history
  • Loading branch information
afalhambra committed Oct 19, 2022
1 parent c0e8c69 commit 7e68c03
Show file tree
Hide file tree
Showing 20 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions .github/actions/java-maven-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ runs:
using: "composite"
steps:
- name: Setup Maven And Java Version
uses: s4u/setup-maven-action@v1.2.1
uses: s4u/setup-maven-action@v1.5.1
with:
java-version: ${{ inputs.java-version }}
maven-version: ${{ inputs.maven-version }}
- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ inputs.cache-key-prefix }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/kind/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
using: "composite"
steps:
- name: Set up KinD
uses: container-tools/kind-action@v1
uses: container-tools/kind-action@v2
with:
config: .github/kind-config.yaml
registry: false # Registry not needed
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: Publish JARs and Containers
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Java and Maven Setup
Expand All @@ -44,7 +44,7 @@ jobs:
CONTAINER_REGISTRY_USER: ${{ secrets.CONTAINER_REGISTRY_USER }}
run: docker login quay.io --username $CONTAINER_REGISTRY_USER --password $CONTAINER_REGISTRY_PASSWORD

- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v2.11.1
id: filter
with:
filters: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-Topics-Cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "main"
- name: Free disk space
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Build and Test
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
fetch-depth: 0
Expand All @@ -32,7 +32,7 @@ jobs:
with:
cache-key-prefix: ${{ runner.os }}
- name: Re-Checkout # since Java And Maven Setup step is checking out the main branch, we have to checkout the pull request branch again
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Managed-Connectors-Cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "main"
- name: Free disk space
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Manager-CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
name: Build all images and run E2E tests
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Check labels
Expand All @@ -45,7 +45,7 @@ jobs:
with:
cache-key-prefix: ${{ runner.os }}
- name: Re-Checkout # since Java And Maven Setup step is checking out the main branch, we have to checkout the pull request branch again
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Set up KinD
Expand All @@ -54,7 +54,7 @@ jobs:
kind-node-hostname: ${{ env.KIND_MAIN_NODE_HOSTNAME }}
- name: External Secret Operator Setup
uses: ./.github/actions/external-secret-operator-setup
- uses: imranismail/setup-kustomize@v1
- uses: imranismail/setup-kustomize@v2
- name: Use built Fleet manager and operator images
run: |
kustomize edit set image event-bridge-manager=$FLEET_MANAGER_CONTAINER_NAME
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Operator-CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: Build and Test Operator
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Check labels
Expand All @@ -34,7 +34,7 @@ jobs:
with:
cache-key-prefix: ${{ runner.os }}
- name: Re-Checkout # since Java And Maven Setup step is checking out the main branch, we have to checkout the pull request branch again
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Set up KinD
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
working-directory: shard-operator-integration-tests
- name: Archive test logs
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: cucumber-logs
path: shard-operator-integration-tests/target/logs/**/*.*
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Upgrade-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
echo "FLEET_SHARD_MINIKUBE_CONTAINER_NAME=openbridge/fleet-shard:$ORIGINAL_BRANCH" >> $GITHUB_ENV
echo "EXECUTOR_CONTAINER_NAME=openbridge/executor:$ORIGINAL_BRANCH" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "${{ env.ORIGINAL_BRANCH }}"
- name: Check labels
Expand All @@ -50,7 +50,7 @@ jobs:
with:
cache-key-prefix: ${{ runner.os }}
- name: Re-Checkout # since Java And Maven Setup step is checking out the main branch, we have to checkout the pull request branch again
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "${{ env.ORIGINAL_BRANCH }}"
- name: Set up KinD
Expand All @@ -59,7 +59,7 @@ jobs:
kind-node-hostname: ${{ env.KIND_MAIN_NODE_HOSTNAME }}
- name: External Secret Operator Setup
uses: ./.github/actions/external-secret-operator-setup
- uses: imranismail/setup-kustomize@v1
- uses: imranismail/setup-kustomize@v2
- name: Use built Fleet manager and operator images
run: |
kustomize edit set image event-bridge-manager=$FLEET_MANAGER_CONTAINER_NAME
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
echo "FLEET_SHARD_MINIKUBE_CONTAINER_NAME=openbridge/fleet-shard:pr" >> $GITHUB_ENV
echo "EXECUTOR_CONTAINER_NAME=openbridge/executor:pr" >> $GITHUB_ENV
- name: Checkout to new version
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "${{ env.NEW_BRANCH }}"
- name: Build all images and resources
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Webhook-Cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "main"
- name: Add mask
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

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

- name: Java and Maven Setup
uses: ./.github/actions/java-maven-setup
Expand All @@ -41,13 +41,13 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2.1.28
with:
languages: 'java'

- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2.1.28

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2.1.28

8 changes: 4 additions & 4 deletions .github/workflows/deploy-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Check User Permission
uses: actions-cool/check-user-permission@v2.0.1
id: checkUser
Expand All @@ -25,7 +25,7 @@ jobs:
check-contributor: true
- name: Comment on PR if the user has no permission to deploy
if: steps.checkUser.outputs.require-result == 'false'
uses: actions/github-script@v3
uses: actions/github-script@v6.3.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -35,7 +35,7 @@ jobs:
repo: context.repo.repo,
body: 'You do not have the rights to perform this operation'
})
- uses: actions/github-script@v3
- uses: actions/github-script@v6.3.3
if: steps.checkUser.outputs.require-result == 'true'
id: get-pr
with:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
echo ::set-output name=output::$(./.github/scripts/rebase-and-deploy-to-env.sh)
- name: Comment on PR
if: steps.checkUser.outputs.require-result == 'true'
uses: actions/github-script@v3
uses: actions/github-script@v6.3.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-cluster-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "dev"
- name: Free disk space
Expand All @@ -47,7 +47,7 @@ jobs:
with:
cache-key-prefix: ${{ runner.os }}
- name: Re-Checkout # since Java And Maven Setup step is checking out the main branch, we have to checkout the dev branch again
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "dev"
- name: Compile sandbox repo
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
echo "::set-output name=USER_NAME::$(./.github/scripts/sheriff-queue.sh)"
id: findUser
- name: Send mail with link to failing job
uses: dawidd6/action-send-mail@v3
uses: dawidd6/action-send-mail@v3.7.1
if: ${{ failure() }}
with:
server_address: smtp.gmail.com
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev-cluster-long-running-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Add mask
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
echo "::set-output name=USER_NAME::$(./.github/scripts/sheriff-queue.sh)"
id: findUser
- name: Send mail with link to failing job
uses: dawidd6/action-send-mail@v3
uses: dawidd6/action-send-mail@v3.7.1
if: ${{ failure() }}
with:
server_address: smtp.gmail.com
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/openapi_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Sandbox OpenAPI changed
uses: peter-evans/repository-dispatch@v1
uses: peter-evans/repository-dispatch@v2.1.0
with:
token: ${{ env.APP_SERVICES_CI_TOKEN }}
repository: ${{ matrix.repo }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/production-cluster-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "stable"
- name: Free disk space
Expand All @@ -47,7 +47,7 @@ jobs:
with:
cache-key-prefix: ${{ runner.os }}
- name: Re-Checkout # since Java And Maven Setup step is checking out the main branch, we have to checkout the stable branch again
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "stable"
- name: Compile sandbox repo
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
echo "::set-output name=USER_NAME::$(./.github/scripts/sheriff-queue.sh)"
id: findUser
- name: Send mail with link to failing job
uses: dawidd6/action-send-mail@v3
uses: dawidd6/action-send-mail@v3.7.1
if: ${{ failure() }}
with:
server_address: smtp.gmail.com
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Free disk space
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stable-cluster-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "stable"
- name: Free disk space
Expand All @@ -47,7 +47,7 @@ jobs:
with:
cache-key-prefix: ${{ runner.os }}
- name: Re-Checkout # since Java And Maven Setup step is checking out the main branch, we have to checkout the stable branch again
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "stable"
- name: Compile sandbox repo
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
echo "::set-output name=USER_NAME::$(./.github/scripts/sheriff-queue.sh)"
id: findUser
- name: Send mail with link to failing job
uses: dawidd6/action-send-mail@v3
uses: dawidd6/action-send-mail@v3.7.1
if: ${{ failure() }}
with:
server_address: smtp.gmail.com
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stage-cluster-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
if: github.repository == '5733d9e2be6485d52ffa08870cabdee0/sandbox'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "stable"
- name: Free disk space
Expand All @@ -47,7 +47,7 @@ jobs:
with:
cache-key-prefix: ${{ runner.os }}
- name: Re-Checkout # since Java And Maven Setup step is checking out the main branch, we have to checkout the stable branch again
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: "stable"
- name: Compile sandbox repo
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
echo "::set-output name=USER_NAME::$(./.github/scripts/sheriff-queue.sh)"
id: findUser
- name: Send mail with link to failing job
uses: dawidd6/action-send-mail@v3
uses: dawidd6/action-send-mail@v3.7.1
if: ${{ failure() }}
with:
server_address: smtp.gmail.com
Expand Down

0 comments on commit 7e68c03

Please sign in to comment.