-
Notifications
You must be signed in to change notification settings - Fork 67
feat: Migrate workflows to use resolve-vars-action@v0 #754
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
Merged
aaronsteers
merged 4 commits into
main
from
devin/1755464645-resolve-vars-action-migration
Aug 17, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
85ddc77
feat: Replace manual variable resolution with resolve-vars-action@v0
devin-ai-integration[bot] 978dd78
fix: Update action name to resolve-ci-vars-action@v0
devin-ai-integration[bot] a01bca4
chore: Remove unnecessary log_outputs parameter
devin-ai-integration[bot] 0cb204c
Apply suggestion from @Copilot
aaronsteers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Create URL to the run output | ||
- name: Resolve workflow variables | ||
id: vars | ||
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT | ||
uses: aaronsteers/resolve-ci-vars-action@v0 | ||
|
||
aaronsteers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Append comment with job run link | ||
id: first-comment-action | ||
uses: peter-evans/create-or-update-comment@v4 | ||
|
@@ -44,18 +45,12 @@ jobs: | |
|
||
[1]: ${{ steps.vars.outputs.run-url }} | ||
|
||
- name: Get PR Info | ||
id: pr-info | ||
uses: cloudposse-github-actions/[email protected] | ||
with: | ||
id: ${{ inputs.pr }} | ||
|
||
outputs: | ||
source-repo: ${{ fromJSON(steps.pr-info.outputs.json).head.repo.full_name }} | ||
source-branch: ${{ fromJSON(steps.pr-info.outputs.json).head.ref }} | ||
commit-sha: ${{ fromJSON(steps.pr-info.outputs.json).head.sha }} | ||
pr-number: ${{ steps.pr-info.outputs.number }} | ||
pr-title: ${{ steps.pr-info.outputs.title }} | ||
source-repo: ${{ steps.vars.outputs.pr-source-repo-name-full }} | ||
source-branch: ${{ steps.vars.outputs.pr-source-git-branch }} | ||
commit-sha: ${{ steps.vars.outputs.pr-source-git-sha }} | ||
pr-number: ${{ steps.vars.outputs.pr-number }} | ||
pr-title: ${{ steps.vars.outputs.pr-title }} | ||
job-run-url: ${{ steps.vars.outputs.run-url }} | ||
|
||
# This is copied from the `python_pytest.yml` file. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,15 +29,19 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Resolve workflow variables | ||
id: vars | ||
uses: aaronsteers/resolve-ci-vars-action@v0 | ||
|
||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
# Use a different template for internal vs forks (community) | ||
template: ${{ github.event.pull_request.head.repo.fork == true && '.github/pr-welcome-community.md' || '.github/pr-welcome-internal.md' }} | ||
template: ${{ steps.vars.outputs.pr-source-is-fork == 'true' && '.github/pr-welcome-community.md' || '.github/pr-welcome-internal.md' }} | ||
aaronsteers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
vars: | | ||
repo_name: ${{ github.event.pull_request.head.repo.full_name }} | ||
branch_name: ${{ github.event.pull_request.head.ref }} | ||
repo_name: ${{ steps.vars.outputs.pr-source-repo-name-full }} | ||
branch_name: ${{ steps.vars.outputs.pr-source-git-branch }} | ||
|
||
- name: Create comment | ||
uses: peter-evans/create-or-update-comment@v4 | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.