Skip to content

Conversation

@kaylareopelle
Copy link
Contributor

@kaylareopelle kaylareopelle commented May 28, 2025

A GitHub token will not trigger workflows associated with PRs. A PAT, however, should trigger those workflows automatically. This should stop us from needing to push empty commits when a release PR is opened.

source

A GitHub token will not trigger workflows associated with PRs.
A PAT, however, should trigger those workflows automatically.
This should stop us from needing to push empty commits when a release PR
is opened.
- name: Open release pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought I tried this at some point and it did not work for me. Did you give this workflow a run from this branch?

Copy link
Contributor Author

@kaylareopelle kaylareopelle Jun 20, 2025

Choose a reason for hiding this comment

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

I thought this approach sounded familiar -- I haven't tried it on a workflow. added a dispatch and will check. that's not necessary since release-request has a dispatch... but I'm running into problems because the branch is on my fork.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm open for suggestions on how to run the workflow from this branch. I'm not quite seeing how to smoothly do this without a release.

On another train of thought -- I looked to see the use of this secret in other OpenTelemetry repos.

Python has a nice comment about the use of the token in their release workflow.

And, when I look at their release PRs, I only see one commit:
open-telemetry/opentelemetry-python-contrib#3571

However, I can't see what jobs were run on that PR, so I can't be certain it's doing what we want it to do.

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