-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Using Github CLI in workflow fails for gh variable set
with Not Found error
#9093
Comments
@aniespica : let's see if we can figure out what might be going on here! 👍 I have several questions regarding the examples above as well as the state of the variables you're setting?
|
Hello @andyfeller,
Workflow with I try |
Describe the bug
Since March, we've encountered persistent issues within our workflows, specifically related to the GitHub CLI integration. Whenever utilizing the CLI in a workflow, we consistently encounter the error message: Failed to set variable
PREV_HEAD": HTTP 404: Not Found (https://api.github.com/repos/***/****/actions/variables).
Given that workflows running on self-hosted runners are unaffected by this error and successfully set the variable as intended, we're considering migrating all workflows utilizing the GitHub CLI to leverage self-hosted runners.
While we've outlined a potential workaround, we seek further insights or guidance from the community to address this issue more comprehensively. Any suggestions, troubleshooting steps, or similar experiences shared would be greatly appreciated.
Version
gh version 2.49.2 (2024-05-13)
Workflow
runs-on: ubuntu-latest
Current runner version: '2.316.1'
Example: Update variables fails
Example: Update variables success
The text was updated successfully, but these errors were encountered: