Skip to content

Commit 7462e40

Browse files
authored
Merge pull request #204 from microsoft/dilan/sync-main-tags
Sync Upstream Tags
2 parents 2007479 + 7e32709 commit 7462e40

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/sync-main-tags.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Sync Main Tags
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- main
9+
10+
jobs:
11+
sync-main-tags:
12+
name: Sync Main Tags
13+
runs-on: ubuntu-latest
14+
if: github.repository == 'microsoft/codeql' && github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'auto/sync-main-pr'
15+
permissions:
16+
contents: write
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Push Tags
23+
run: |
24+
git fetch upstream --tags --force
25+
git push --force origin --tags
26+
env:
27+
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}

0 commit comments

Comments
 (0)