Skip to content

A GitHub action to automatically generate a list of hashes for a release.

Notifications You must be signed in to change notification settings

fsoederhuyzen/ghaction-generate-release-hashes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Release Hashes - GitHub Action

A GitHub action to automatically generate a list of hashes for a release.

Inputs

hash-type

The type of hash to generate for each file. Must be one of md5, sha1, sha256, or sha512. Defaults to sha256.

file-name

A file name to output to, if desired. If this is named the same as a file in the release, that file is not included in the hash list.

get-assets

If set to "true", the list of assets will be redownloaded instead of using the GitHub-provided list. This is useful if previous jobs in a workflow upload assets, as GitHub's list will not include them.

Outputs

hashes

A string with the list of files/hashes generated by the action.

Example usage

Upload the list as an artifact:

- uses: MCJack123/ghaction-generate-release-hashes@v3
  with:
    hash-type: sha1
    file-name: hashes.txt
- uses: actions/upload-artifact@v2
  with:
    name: Asset Hashes
    path: hashes.txt

About

A GitHub action to automatically generate a list of hashes for a release.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%