mirror of
https://github.com/github/codeql-action.git
synced 2026-01-04 21:50:17 +08:00
33 lines
993 B
YAML
33 lines
993 B
YAML
name: Update release branch
|
|
on:
|
|
schedule:
|
|
- cron: 0 9 * * 1
|
|
repository_dispatch:
|
|
# Example of how to trigger this:
|
|
# curl -H "Authorization: Bearer <token>" -X POST https://api.github.com/repos/github/codeql-action/dispatches -d '{"event_type":"update-release-branch"}'
|
|
# Replace <token> with a personal access token from this page: https://github.com/settings/tokens
|
|
types: [update-release-branch]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
# Need full history so we calculate diffs
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.5
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install PyGithub==1.51 requests
|
|
|
|
- name: Update release branch
|
|
run: python .github/update-release-branch.py ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }}
|