summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/pr-mirror-repo-sync.yml6
-rw-r--r--.github/workflows/update-version-tags.yml3
2 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/pr-mirror-repo-sync.yml b/.github/workflows/pr-mirror-repo-sync.yml
index cc79a0c5..1f01bd02 100644
--- a/.github/workflows/pr-mirror-repo-sync.yml
+++ b/.github/workflows/pr-mirror-repo-sync.yml
@@ -28,9 +28,9 @@ jobs:
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
)
- uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@current
- with:
- sync_branch: ${{ github.event.inputs.sync_branch || 'current' }}
+ uses: vyos/.github/.github/workflows/pr-mirror-repo-sync.yml@current
+ with:
+ sync_branch: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.base.ref || github.event.inputs.sync_branch || 'current' }}
secrets:
PAT: ${{ secrets.PAT }}
REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
diff --git a/.github/workflows/update-version-tags.yml b/.github/workflows/update-version-tags.yml
index eb87f801..c7c372a3 100644
--- a/.github/workflows/update-version-tags.yml
+++ b/.github/workflows/update-version-tags.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- current
+ - rolling
- circinus
- sagitta
@@ -27,7 +28,7 @@ jobs:
run: |
set -euo pipefail
case "$BRANCH" in
- current) TAG=rolling ;;
+ current|rolling) TAG=rolling ;;
circinus) TAG=1.5 ;;
sagitta) TAG=1.4 ;;
*) echo "Unexpected branch: $BRANCH" >&2; exit 1 ;;