Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Copy-Release is a GitHub action to copy a specific Release or the latest Release from the workflow repo to another repo. It is a fork of Hs1r1us/Release-AIO .

License

Notifications You must be signed in to change notification settings

retaildevcrews/Copy-Release

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copy-Release

Copy a release to another repository.

Forked from Release-AIO under the MIT license to provide more control over copying a specific release.

The original Release-AIO action referenced @actions/create-release @actions/upload-release-asset.

Copy-Release builds dist as in this spacejelly tutorial.


Usage

Environments

  • GITHUB_TOKEN: Set secrets.GITHUB_TOKEN to env.GITHUB_TOKEN, Pay attention set a new secret token when create a release to other repository

Inputs

  • tag_name: The name of the tag for the release to copy

Outputs

  • id: The release ID
  • html_url: The URL users can navigate to in order to view the release
  • upload_url: The URL for uploading assets to the release

Examples

Copy a Specific Release to Another Repo

  • Copy a specific Release of the current Repository to the target Repository
    • private_Repo => public_Repo
    • Use in private_Repo
    • A new token to access the target Repository
- name: Copy Release to some-repo
  id: Copy-Release
  uses: DanMass/[email protected]
  env:
    GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN }} # You need a new token to access the target Repository
  with:
    tag_name: 'v1.3.2'
    repo: 'AnOrg/public-repo'

Copy the Latest Release to Another Repo

  • Copy the latest Release of the current Repository to the target Repository
    • private_Repo => public_Repo
    • Use in private_Repo
    • A new token to access the target Repository
- name: Copy Release to some-repo
  id: Copy-Release
  uses: DanMass/[email protected]
  env:
    GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN }} # You need a new token to access the target Repository
  with:
    repo: 'AnOrg/public-repo'

About

Copy-Release is a GitHub action to copy a specific Release or the latest Release from the workflow repo to another repo. It is a fork of Hs1r1us/Release-AIO .

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%