mirror of
https://github.com/github/codeql.git
synced 2026-05-25 00:27:09 +02:00
sync upstream tags to main
This commit is contained in:
27
.github/workflows/sync-main-tags.yml
vendored
Normal file
27
.github/workflows/sync-main-tags.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Sync Main Tags
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
sync-main-tags:
|
||||
name: Sync Main Tags
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'microsoft/codeql' && github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'auto/sync-main-pr'
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Push Tags
|
||||
run: |
|
||||
git fetch upstream --tags --force
|
||||
git push --force origin --tags
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||
Reference in New Issue
Block a user