Skip to content
Merged
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
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ on:
type: string
description: 'Enter the Release ticket'
required: true

permissions:
id-token: write # Required for OIDC
contents: read
# push: # on push to master branch
# branches:
# - master
# branches:
# - master

jobs:
release:
runs-on: ubuntu-latest
if: contains(fromJSON('["umangmoe", "arshiya-moengage", "badri-engg-data"]'), github.actor)
if: contains(fromJSON('["umangmoe", "arshiya-moengage"]'), github.actor)
steps:
- name: Checkout sdk automation scripts
uses: actions/checkout@v3
Expand All @@ -27,10 +31,10 @@ jobs:
path: sdk-automation-scripts
token: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
- name: Automation script setup
uses: ./sdk-automation-scripts/actions/npm-repository-setup
uses: ./sdk-automation-scripts/actions/npm-repository-setup
- name: Checkout code
uses: actions/checkout@v3
with:
with:
path: source
fetch-depth: 0
fetch-tags: true
Expand All @@ -45,9 +49,8 @@ jobs:
run: |
.github/scripts/release.main.kts ${{ github.event.inputs.releaseNotes }} ${{ github.event.inputs.releaseTicket }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ github.token }}
- name: Notify release
working-directory: source
run: |
kotlin .github/scripts/notify-release.main.kts ${{ github.event.inputs.releaseNotes }}
kotlin .github/scripts/notify-release.main.kts ${{ github.event.inputs.releaseNotes }}
Loading