Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
copy

GitHub Action

Clone Github Releases

v1.3.4

Clone Github Releases

copy

Clone Github Releases

Clone the releases in one repo to this one

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Clone Github Releases

uses: andrewthetechie/[email protected]

Learn more about this action in andrewthetechie/gha-clone-releases

Choose a version

gha-clone-releases

Action Template Actions Status Actions Status

Description

Clone the releases in one repo to this one

This github action can clone releases from a source repo to your repo. This is useful if you are using a repo to build container images for an upstream container. You can run this action on a cron schedule to pick up new releases and build new containers.

Usage

On each run, it will find all releases in repo and the repo you are running your action on, find any releases that exist in repo and not in your repo, and then will create those releases in your repo.

Example workflow

name: Clone
on:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Run action
        # Put your action repo here
        uses: andrewthetechie/gha-clone-releases@v1
        # Put an example of your mandatory inputs here
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          repo: andrewthetechie/andrewthetechie:

Inputs

parameter description required default
token Github token true
src_repo Source repo to clone from true
dest_repo Destination repo to clone to, default is this repo false
target Target for new tags/releases in this repo. If not set, will use the default branch false
skip_draft Skip draft releases false false
skip_prerelease Skip Prereleases false false
limit A limit of how many releases to add on a single run. Good for not overwhelming CI systems false 0
dry_run If true, just output what releases would have been made but do not make releases false false
min_version If set, we will ignore any releases from the source repo that are less than min_version false

Outputs

parameter description
addedReleases Comma separated list of all the releases created
addedReleasesCount Count of releases added
skippedReleasesCount Count of releases skipped

Runs

This action is a docker action.