Skip to content

Commit

Permalink
chore(release): pull release/v1.19.0 into main (#496)
Browse files Browse the repository at this point in the history
Co-authored-by: a-rampalli <[email protected]>
Co-authored-by: Sudip Paul <[email protected]>
Co-authored-by: shrouti1507 <[email protected]>
Co-authored-by: Alexandros Milaios <[email protected]>
Co-authored-by: a-rampalli <[email protected]>
Co-authored-by: Sai Kumar Battinoju <[email protected]>
Co-authored-by: saikumarrs <[email protected]>
Co-authored-by: Gauravudia <[email protected]>
Co-authored-by: Ruchira Moitra <[email protected]>
Co-authored-by: krishnachaitanya <[email protected]>
Co-authored-by: Debanjan Ganguly <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
13 people authored Apr 4, 2023
1 parent 4c9814c commit d3d4bad
Show file tree
Hide file tree
Showing 43 changed files with 9,436 additions and 20,121 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ name: Check PR Title

on:
pull_request:
types: ['opened', 'reopened', 'edited', 'synchronize']
types:
- opened
- edited
- reopened
- synchronize

jobs:
check_pr_title:
check-pr-title:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- name: Checkout Source Branch
uses: actions/checkout@v3

- name: Check PR Title
uses: rudderlabs/[email protected]
51 changes: 0 additions & 51 deletions .github/workflows/create-hotfix-branch.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/create-hotfix-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Create New Hotfix Branch

on:
workflow_dispatch:
inputs:
hotfix_name:
description: Hotfix branch name
required: true

jobs:
create-branch:
name: Create New Branch
runs-on: ubuntu-latest

# Only allow release stakeholders to initiate releases
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'lvrach' || github.actor == 'cisse21' || github.actor == 'nidhilashkari17' || github.actor == 'debanjan97' || github.actor == 'AchuthaSourabhC' || github.actor == 'saikumarrs') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'lvrach' || github.triggering_actor == 'cisse21' || github.triggering_actor == 'nidhilashkari17' || github.triggering_actor == 'debanjan97' || github.triggering_actor == 'AchuthaSourabhC' || github.triggering_actor == 'saikumarrs')
steps:
- name: Create Branch
uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'hotfix/${{ github.event.inputs.hotfix_name }}'
67 changes: 0 additions & 67 deletions .github/workflows/deploy-to-dev.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/deploy-to-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy Configurations To Development DB

on:
push:
branches:
- develop
pull_request:
types:
- closed
branches:
- develop

jobs:
report-code-coverage:
name: Report Code Coverage
if: github.event_name == 'push'
uses: ./.github/workflows/report-code-coverage.yml
secrets: inherit

deploy-to-dev:
name: Deployment To Development DB
# Only merged pull requests must trigger
if: github.event.pull_request.merged == true
uses: ./.github/workflows/deploy.yml
with:
deploy_url: https://api.dev.rudderlabs.com
secrets:
API_USERNAME: ${{ secrets.DEV_USERNAME }}
API_PASSWORD: ${{ secrets.DEV_PASSWORD }}
SLACK_BOT_TOKEN: $$ {{ secrets.SLACK_BOT_TOKEN }}
SLACK_RELEASE_CHANNEL_ID: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}

deploy-to-sources-dev:
name: Deployment To Sources Development DB
# Only merged pull requests must trigger
if: github.event.pull_request.merged == true
uses: ./.github/workflows/deploy.yml
with:
deploy_url: https://sources-api.dev.rudderlabs.com
secrets:
API_USERNAME: ${{ secrets.DEV_USERNAME }}
API_PASSWORD: ${{ secrets.DEV_PASSWORD }}
SLACK_BOT_TOKEN: $$ {{ secrets.SLACK_BOT_TOKEN }}
SLACK_RELEASE_CHANNEL_ID: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
68 changes: 0 additions & 68 deletions .github/workflows/deploy-to-prod.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/deploy-to-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Deploy Configurations To Production DB

on:
workflow_call:
push:
branches:
- main
pull_request:
types:
- closed
branches:
- main

jobs:
report-code-coverage:
name: Report Code Coverage
if: github.event_name == 'push'
uses: ./.github/workflows/report-code-coverage.yml
secrets: inherit

extract-version:
name: Extract Deployment Version
runs-on: ubuntu-latest
# Only merged pull requests from release candidate branches and external workflow calls must trigger
if: (((startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) && github.event.pull_request.merged == true) || github.event_name == 'workflow_call')
outputs:
version: ${{ steps.extract_version.outputs.version }}
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 1

- name: Extract Package Version
id: extract_version
run: |
version=$(jq -r .version package.json)
echo $version
echo "version=$version" >> $GITHUB_OUTPUT
deploy:
needs: [ extract-version ]
name: Deployment To Production DB
# Only merged pull requests from release candidate branches and external workflow calls must trigger
if: (((startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) && github.event.pull_request.merged == true) || github.event_name == 'workflow_call')
uses: ./.github/workflows/deploy.yml
with:
deploy_url: https://api.rudderstack.com
notify: true
version: ${{ needs.extract-version.outputs.version }}
secrets:
API_USERNAME: ${{ secrets.PROD_USERNAME }}
API_PASSWORD: ${{ secrets.PROD_PASSWORD }}
SLACK_BOT_TOKEN: $$ {{ secrets.SLACK_BOT_TOKEN }}
SLACK_RELEASE_CHANNEL_ID: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
Loading

0 comments on commit d3d4bad

Please sign in to comment.