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

Setup dispatch / manual re-running of release workflow #1453

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Oct 23, 2023

So I can stop publishing basically no-op tags to try a new release

@@ -12,6 +18,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.events.inputs.tag || github.ref }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref is:

  The fully-formed ref of the branch or tag that triggered the workflow run. For workflows triggered by push, this is the branch or tag ref that was pushed. For workflows triggered by pull_request, this is the pull request merge branch. For workflows triggered by release, this is the release tag created. For other triggers, this is the branch or tag ref that triggered the workflow run. This is only set if a branch or tag is available for the event type. The ref given is fully-formed, meaning that for branches the format is refs/heads/<branch_name>, for pull requests it is refs/pull/<pr_number>/merge, and for tags it is refs/tags/<tag_name>. For example, refs/heads/feature-branch-1.

from: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

@NullVoxPopuli NullVoxPopuli merged commit a8321b9 into master Oct 23, 2023
5 checks passed
@NullVoxPopuli NullVoxPopuli deleted the workflow-dispatch-setup branch October 23, 2023 23:54
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

Successfully merging this pull request may close these issues.

2 participants