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

refactor(automation): Update CI pipeline actions #5669

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/checkout-submodules/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
steps:
- name: Checkout submodule
if: ${{ inputs.enabled == 'true' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ inputs.submodule_token }}
repository: novuhq/packages-enterprise
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
- name: Install pnpm
uses: pnpm/action-setup@v3

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
name: ⚙️ Setup Node Version
with:
node-version: '20.8.1'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
name: "CodeQL"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

on:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/community-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ on:
- '!prod'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
check:
name: Verify
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.8.1
- name: Install Octokit
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
matrix:
name: ['novu/api-ee', 'novu/api']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: ${{ contains (matrix.name,'-ee') }}
token: ${{ secrets.SUBMODULES_TOKEN }}
Expand Down Expand Up @@ -73,15 +73,15 @@ jobs:

- name: Configure AWS credentials
if: ${{ contains (matrix.name,'-ee') }}
uses: aws-actions/configure-aws-credentials@v1
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 }}
aws-region: eu-west-2

- name: Terraform setup
if: ${{ contains (matrix.name,'-ee') }}
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v3
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
terraform_version: 1.5.5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-deploy-inbound-mail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
name: ['novu/inbound-mail-ee']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project

- uses: crazy-max/ghaction-setup-docker@v2
Expand Down Expand Up @@ -112,14 +112,14 @@ jobs:
path: cloud-infra

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
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 }}
aws-region: eu-west-2

- name: Terraform setup
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v3
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
terraform_version: 1.5.5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy-web-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
environment: Development

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download the artifact
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
matrix:
name: ['novu/worker-ee', 'novu/worker']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: ${{ contains (matrix.name,'-ee') }}
token: ${{ secrets.SUBMODULES_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-deploy-ws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: ${{ contains (matrix.name,'-ee') }}
token: ${{ secrets.SUBMODULES_TOKEN }}
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
echo "SERVICE_NAME=$(basename "${service//-/-}")" >> $GITHUB_ENV

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
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 @@ -86,7 +86,7 @@ jobs:
path: cloud-infra

- name: Terraform setup
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v3
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
terraform_version: 1.5.5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/issue-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ on:
types: [opened]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
check:
name: Verify
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.8.1
- name: Install Octokit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jarvis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
permissions:
issues: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: get-comment-body
run: |
ls -la
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/milestone-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [submitted]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
Expand All @@ -17,9 +17,9 @@ jobs:
pull-requests: write
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.8.1
- name: Install Octokit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
deployments: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: ${{ contains (matrix.name,'-ee') }}
token: ${{ secrets.SUBMODULES_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-deploy-inbound-mail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
matrix:
name: [ 'novu/inbound-mail-ee', 'novu/inbound-mail' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project

- name: build api
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-deploy-web-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
environment: Production

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download the artifact
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-deploy-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
deployments: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: ${{ contains (matrix.name,'-ee') }}
token: ${{ secrets.SUBMODULES_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-deploy-ws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
outputs:
docker_image: ${{ steps.build-image.outputs.IMAGE }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: ${{ contains (matrix.name,'-ee') }}
token: ${{ secrets.SUBMODULES_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: stefanprodan/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-api-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ jobs:
needs: [check_submodule_token]
steps:
# checkout with submodules if token is provided
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout with submodules
if: ${{ needs.check_submodule_token.outputs.has_token == 'true' && inputs.ee }}
with:
submodules: true
token: ${{ secrets.SUBMODULES_TOKEN }}

# else checkout without submodules if the token is not provided
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout
if: ${{ needs.check_submodule_token.outputs.has_token != 'true' || !contains (inputs.job-name,'-ee') }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reusable-app-service-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
path: cloud-infra

- name: Terraform setup
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v3
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
terraform_version: 1.5.5
Expand All @@ -68,7 +68,7 @@ jobs:
echo "aws_region=$(terraform output -json aws_region | jq -r .)" >> $GITHUB_ENV

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
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 @@ -95,7 +95,7 @@ jobs:
cluster: ${{ env.ecs_cluster }}
wait-for-service-stability: true

- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ inputs.deploy_sentry_release }}

- name: get-npm-version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
matrix:
name: [ '${{ inputs.package_name }}-ee', '${{ inputs.package_name }}' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: ${{ contains (matrix.name,'-ee') }}
token: ${{ secrets.SUBMODULES_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-embed-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
deployments: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
with:
slim: 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-inbound-mail-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:
echo "has_token=false" >> $GITHUB_OUTPUT
fi
# checkout with submodules if token is provided
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: steps.setup.outputs.has_token == 'true'
with:
submodules: ${{ inputs.ee }}
token: ${{ secrets.SUBMODULES_TOKEN }}
# else checkout without submodules if the token is not provided
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: steps.setup.outputs.has_token != 'true'
- uses: ./.github/actions/setup-project
- uses: ./.github/actions/setup-redis-cluster
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-notification-center.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-project

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-web-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
deployments: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout with submodules
with:
submodules: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-web-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ jobs:
fi

# checkout with submodules if token is provided
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: steps.setup.outputs.has_token == 'true'
with:
submodules: ${{ inputs.ee }}
token: ${{ secrets.SUBMODULES_TOKEN }}
# else checkout without submodules if the token is not provided
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: steps.setup.outputs.has_token != 'true'
- uses: ./.github/actions/setup-project
id: setup-project
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-webhook-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-project

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-widget-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
deployments: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
with:
slim: 'true'
Expand Down
Loading
Loading