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

fix: more literally disable host --check #739

Merged
merged 1 commit into from
Jan 26, 2024
Merged

fix: more literally disable host --check #739

merged 1 commit into from
Jan 26, 2024

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented Jan 23, 2024

We were using 'is from a fork' as a proxy for 'should have the secret' but evidently dependabot can make branches on your repo and trigger PR CI that doesn't have secrets. This regresses our ability to do validation that you've set things up right but it's more reliable.

We were using 'is from a fork' as a proxy for 'should have the secret' but evidently
dependabot can make branches on your repo and trigger PR CI that doesn't have secrets.
This regresses our ability to do validation that you've set things up right but it's more reliable.
@@ -113,10 +113,11 @@ jobs:
- id: plan
run: |
cargo dist
{{%- if dispatch_releases %}} ${{ inputs.tag && (inputs.tag != 'dry-run' && format('host --steps=create --tag={0}', inputs.tag) || format('host --steps=create', inputs.tag))
{{%- else %}} ${{ !github.event.pull_request && format('host --steps=create --tag={0}', github.ref_name)
{{%- if dispatch_releases %}} ${{ (inputs.tag && inputs.tag != 'dry-run' && format('host --steps=create --tag={0}', inputs.tag))
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like the conditionals here are getting complex enough it might be nice to comment on it; if we run into bugs here it'll help us remember our reasoning a little better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's a good call, i'll add some comments in a follow up (rn just wanna get the fix out)

@Gankra Gankra merged commit be3314e into main Jan 26, 2024
@Gankra Gankra deleted the dependabutt branch January 26, 2024 17:32
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