Skip to content

Commit 7b88bf1

Browse files
committed
Fix quarterly tag drift between fork and upstream
The quarterly tag workflow ran on both the fork and upstream. Each side made its own annotated tag object for the same commit. The two tag objects did not match, so a plain `git fetch` between the fork and upstream failed on the tag. Now the tag workflow runs only on the upstream repo. The fork sync workflow copies the exact tag object from upstream instead. Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
1 parent 7ff3adf commit 7b88bf1

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/github-actions-cron-sync-fork-from-upstream.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,10 @@ jobs:
4141
# You can also manually trigger a workflow dispatch with the force
4242
# value equal to 'true'.
4343
force: ${{ github.event.inputs.force || (secrets.UPSTREAM_SYNC == 'always overwrite master branch') }}
44+
# Quarterly release tags are only created upstream (see
45+
# github-actions-quarterly-tag.yml); mirror the exact tag object
46+
# here instead of letting this repo mint its own, which is what
47+
# caused tag drift (same commit, two different annotated tag
48+
# objects, breaking plain `git fetch` between the two remotes).
49+
syncTags: true
4450
deployKey: ${{ secrets.DEPLOY_KEY }}

‎.github/workflows/github-actions-quarterly-tag.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
create-tag:
1515
name: Create quarterly tag
1616
runs-on: ubuntu-latest
17+
if: github.repository == 'The-OpenROAD-Project/OpenROAD-flow-scripts'
1718
permissions:
1819
contents: write
1920
steps:

0 commit comments

Comments
 (0)