Skip to content

Commit

Permalink
cnp merge sync: grab tags for destination too
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-heyer committed Dec 11, 2024
1 parent 322897a commit 85f4c21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/sync-and-process-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:

jobs:
sync-and-process-files:
permissions:
contents: write
pull-requests: write
env:
SOURCE_REPO: ${{ github.event.client_payload.repo || inputs.repo }}
SOURCE_REF: ${{ github.event.client_payload.ref || inputs.ref }}
Expand Down Expand Up @@ -93,4 +96,5 @@ jobs:
path: destination/
title: ${{ env.TITLE }}
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Sync ${{ env.SOURCE_REPO }} ${{ steps.changes.outputs.new-tag }}"

2 changes: 2 additions & 0 deletions scripts/source/process-cnp-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ PREVIOUS_TAG=`git tag | sort -V -r | head -n $(($CURRENT_TAG_INDEX+1)) | tail -n

cd $DESTINATION_CHECKOUT

git fetch --tags

PREVIOUS_COMMIT=`git rev-list -n 1 product/pg4k/$PREVIOUS_TAG || git rev-list -n 1 HEAD`
PREVIOUS_COMMIT_DESC=`git rev-list --format=oneline -n 1 $PREVIOUS_COMMIT`

Expand Down

1 comment on commit 85f4c21

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.