Skip to content
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

Docs suggestion: Clarify use with release tags #50

Closed
udf2457 opened this issue May 3, 2024 · 2 comments
Closed

Docs suggestion: Clarify use with release tags #50

udf2457 opened this issue May 3, 2024 · 2 comments

Comments

@udf2457
Copy link

udf2457 commented May 3, 2024

Thank you for your work on this.

It is not clear how to use the input to define a tagged release.

For example, assume my github action fires on commit of a new tag to create a new release with assets named inline with the tag number e.g. foo_$tagNumber_darwin_amd64.tar.gz.

Its not quite clear, at least to me, how to integrate attest with this sort of dynamic naming.

@bdehamer
Copy link
Collaborator

bdehamer commented May 6, 2024

When specifying the value for the subject-path input parameter you can use any sort of GitHub Action-supported expression. If the name of the tag is present in an environment variable you could do something like:

- uses: actions/attest-build-provenance@v1
  with:
    subject-path: foo_${{ env.tagNumber }}_darwin_amd64.tar.gz

or maybe you have the entire name of the asset set as the output value of a previous step:

- uses: actions/attest-build-provenance@v1
  with:
    subject-path: ${{ steps.build.outputs.asset_name }}

@udf2457
Copy link
Author

udf2457 commented May 6, 2024

Super, thanks @bdehamer , will test at some point int he next few days

@bdehamer bdehamer closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants