Skip to content

Dependabot

Dependabot #33

Workflow file for this run

name: Dependabot
on:
schedule:
- cron: "0 8 * * 1"
workflow_dispatch: # Allow manual triggering
permissions:
id-token: write
contents: write
jobs:
get-release-branch-names:
runs-on: ubuntu-latest
outputs:
mcore: ${{ steps.get-branch.outputs.mcore_release_branch }}
if: github.repository == 'NVIDIA/Megatron-LM'
steps:
- name: Get release branch names
id: get-branch
env:
PAT: ${{ secrets.PAT }}
run: |
latest_branch=$(git ls-remote --heads https://token:${PAT}@github.com/NVIDIA/Megatron-LM.git 'refs/heads/core_r*' |
grep -o 'core_r[0-9]\+\.[0-9]\+\.[0-9]\+' |
sort -V |
tail -n1)
echo "mcore_release_branch=$latest_branch" | tee -a $GITHUB_OUTPUT
bump-tags:
needs: [get-release-branch-names]
if: github.repository == 'NVIDIA/Megatron-LM'
strategy:
fail-fast: false
matrix:
include:
- target-branch: ${{ needs.get-release-branch-names.outputs.mcore }}
- target-branch: main
uses: ./.github/workflows/_update_dependencies.yml
with:
target-branch: ${{ matrix.target-branch }}
secrets:
PAT: ${{ secrets.PAT }}
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_PWD: ${{ secrets.SSH_PWD }}
notify:
if: failure() && github.repository == 'NVIDIA/Megatron-LM'
runs-on: ubuntu-latest
needs: [bump-tags]
steps:
- name: Notify
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_CI_CHANNEL_WEBHOOK }}
SLACK_WEBHOOK_ADMIN: <!subteam^${{ secrets.SLACK_TEAM_GROUP_ID }}>
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
curl -X POST \
-H 'Content-type: application/json' \
--data "{\"text\":\":robot_joy: <https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}|Dependabot workflow> failed. Please fix manually.\n\ncc ${SLACK_WEBHOOK_ADMIN}\"}" \
$SLACK_WEBHOOK