Skip to content

Version Packages (#2418) #964

Version Packages (#2418)

Version Packages (#2418) #964

Workflow file for this run

name: Gerald - Notify on Push
'on':
push:
branches:
- master
- develop
- main
jobs:
gerald:
# Skip this workflow on dependabot PRs
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: '${{ github.ref }}'
# GitHub Actions doesn't allow us to take the length of github.event.commits, so we have to pass the array into node and take the length there.
# We add one to the length because we want to get the diff between the last commit and the commit before the first commit.
fetch-depth: '$(node -e "console.log(${{ github.event.commits }}.length + 1")'
- name: Run Gerald
uses: Khan/gerald@main
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
ADMIN_PERMISSION_TOKEN: '${{ secrets.KHAN_ACTIONS_BOT_TOKEN }}'
EVENT: 'push'