Skip to content

Add push_tags options to backup workflows #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/universal-cloud-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
description: Whether to download Git-LFS files.
type: boolean
required: false
push_tags:
description: Whether to also push tags to backup origin.
type: boolean
required: false
default: false
secrets:
SSH_PRIVATE_KEY:
required: true
Expand Down Expand Up @@ -44,3 +49,6 @@ jobs:
run: git remote add backup ${{ inputs.remote }}
- name: Push to partner repository
run: git push backup HEAD:"$GITHUB_REF"
- name: Push tags
if: ${{ inputs.push_tags }}
run: git push backup HEAD:"$GITHUB_REF" --tags
8 changes: 8 additions & 0 deletions .github/workflows/universal-selfhosted-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
description: Whether to download Git-LFS files.
type: boolean
required: false
push_tags:
description: Whether to also push tags to backup origin.
type: boolean
required: false
default: false
secrets:
SSH_PRIVATE_KEY:
required: true
Expand Down Expand Up @@ -48,3 +53,6 @@ jobs:
run: git remote add backup ${{ inputs.remote }}
- name: Push to partner repository
run: git push backup HEAD:"$GITHUB_REF"
- name: Push tags
if: ${{ inputs.push_tags }}
run: git push backup HEAD:"$GITHUB_REF" --tags