Skip to content

Commit 3bc5f4a

Browse files
Merge pull request #43 from futuredapp/feature/cloud-backup-tags
Add push_tags options to backup workflows
2 parents 0bc7d21 + fcaa8ea commit 3bc5f4a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/universal-cloud-backup.yml

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
description: Whether to download Git-LFS files.
1717
type: boolean
1818
required: false
19+
push_tags:
20+
description: Whether to also push tags to backup origin.
21+
type: boolean
22+
required: false
23+
default: false
1924
secrets:
2025
SSH_PRIVATE_KEY:
2126
required: true
@@ -44,3 +49,6 @@ jobs:
4449
run: git remote add backup ${{ inputs.remote }}
4550
- name: Push to partner repository
4651
run: git push backup HEAD:"$GITHUB_REF"
52+
- name: Push tags
53+
if: ${{ inputs.push_tags }}
54+
run: git push backup HEAD:"$GITHUB_REF" --tags

.github/workflows/universal-selfhosted-backup.yml

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
description: Whether to download Git-LFS files.
1717
type: boolean
1818
required: false
19+
push_tags:
20+
description: Whether to also push tags to backup origin.
21+
type: boolean
22+
required: false
23+
default: false
1924
secrets:
2025
SSH_PRIVATE_KEY:
2126
required: true
@@ -48,3 +53,6 @@ jobs:
4853
run: git remote add backup ${{ inputs.remote }}
4954
- name: Push to partner repository
5055
run: git push backup HEAD:"$GITHUB_REF"
56+
- name: Push tags
57+
if: ${{ inputs.push_tags }}
58+
run: git push backup HEAD:"$GITHUB_REF" --tags

0 commit comments

Comments
 (0)