Sync Main #8912
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Main | |
on: | |
schedule: | |
- cron: '55 * * * *' | |
workflow_dispatch: | |
jobs: | |
sync-main: | |
name: Sync-main | |
runs-on: ubuntu-latest | |
if: github.repository == 'microsoft/codeql' | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.WORKFLOW_TOKEN }} | |
- name: Git config | |
shell: bash | |
run: | | |
git config user.name Dilan Bhalla | |
git config user.email [email protected] | |
- name: Fetch | |
shell: bash | |
run: | | |
set -x | |
git fetch | |
git remote add upstream https://github.com/github/codeql.git | |
git fetch upstream --tags --force | |
- name: Sync Main | |
shell: bash | |
run: | | |
git merge codeql-cli/latest | |
git push origin main | |
git push origin --tags --force | |