mirror of
https://github.com/hohn/codeql-lab.git
synced 2025-12-16 18:03:08 +01:00
24 lines
507 B
YAML
24 lines
507 B
YAML
# The default branch is "main", but older checkouts may still use "master".
|
|
# This workflow keeps "master" up to date with "main".
|
|
name: Mirror main to master
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
mirror-main-to-master:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'github/vscode-codeql-starter'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Push main to master
|
|
run: git push origin main:master
|