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 release workflow with PRs from forks #332

Merged

Conversation

9999years
Copy link
Member

PR #329 failed to create a release because the release workflow ran in the context of the fork:

Run peter-evans/create-pull-request@v5
Error: Input 'token' not supplied. Unable to continue.
Restore git configuration
  Error: Cannot read properties of undefined (reading 'removeAuth')

Change the workflow to run in pull_request_target to fix this, I hope.

Also update get-crate-version to not depend on any runtime tools, only the Nix expressions.

See: https://github.com/MercuryTechnologies/ghciwatch/actions/runs/12130981516/job/33822389311

PR #329 failed to create a release because the release workflow ran in
the context of the fork:

```
Run peter-evans/create-pull-request@v5
Error: Input 'token' not supplied. Unable to continue.
Restore git configuration
  Error: Cannot read properties of undefined (reading 'removeAuth')
```

Change the workflow to run in `pull_request_target` to fix this, I hope.

Also update `get-crate-version` to not depend on any runtime tools, only
the Nix expressions.

See: https://github.com/MercuryTechnologies/ghciwatch/actions/runs/12130981516/job/33822389311
@9999years 9999years added the patch Bug fixes or non-functional changes label Dec 3, 2024
Copy link

linear bot commented Dec 3, 2024

@github-actions github-actions bot removed the patch Bug fixes or non-functional changes label Dec 3, 2024
@9999years 9999years added the patch Bug fixes or non-functional changes label Dec 3, 2024
@9999years 9999years merged commit 2d61403 into main Dec 3, 2024
41 checks passed
@9999years 9999years deleted the wiggles/dux-2827-enable-releases-for-prs-from-forks branch December 3, 2024 17:49
Copy link
Contributor

github-actions bot commented Dec 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Bug fixes or non-functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant