Replies: 2 comments 1 reply
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
These look like two permission checks, not a problem with the branch-name pattern. For the release call, give only the release job write access to repository contents: jobs:
release:
permissions:
contents: write
steps:
# ...
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${{ env.RELEASE_NAME }}" \
--title "Release ${{ env.RELEASE_NAME }}" \
--generate-notes \
--target "${GITHUB_SHA}"
You also do not need to push the tag separately here. When the tag does not exist, If the release still fails after adding
Relevant GitHub references: |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Workflow Deployment
Discussion Details
We have a workflow that runs when commits are pushed to branches that follow a certain pattern (think release branches with a naming convention). This job builds some code, and uses the
ghCLI to create and publish a release on our repo. The relevant step looks as follows (repo named anonymised as<ORG>/<REPO>):And the logs result in the following error (replaced the commit hash with
deadbeef00):After some additional digging, we tried pushing the tag first (doing a
git tag -a ${TAG} ${GITHUB_SHA}followed bygit push origin "refs/tags/${TAG}) and got a slightly different error:So it seems a check internally timed out. Is this a known and expected behaviour or a bug in how tags are checked against rulesets? The branch's commits include no additions to any workflows, but main has changed a fair bit since this release was cut and main has moved forwards a fair bit.
All reactions