codex- / await-remote-run Goto Github PK
View Code? Open in Web Editor NEW✅ Await the completion of a foreign repository Workflow Run given the Run ID.
License: MIT License
✅ Await the completion of a foreign repository Workflow Run given the Run ID.
License: MIT License
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
@types/node
, @typescript-eslint/eslint-plugin
, @typescript-eslint/parser
, @vitest/coverage-v8
, esbuild
, vitest
).github/workflows/action.yml
actions/checkout v4
.github/workflows/codeql-analysis.yml
actions/checkout v4
github/codeql-action v3
github/codeql-action v3
.github/workflows/release.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/test.yml
actions/checkout v4
actions/setup-node v4
actions/checkout v4
actions/setup-node v4
codecov/codecov-action v4
package.json
@actions/core ^1.10.1
@actions/github ^6.0.0
@types/node ^20.12.7
@typescript-eslint/eslint-plugin ^7.8.0
@typescript-eslint/parser ^7.8.0
@vitest/coverage-v8 ^1.5.3
chalk ^5.3.0
changelogithub ^0.13.7
esbuild ^0.20.2
eslint ^8.57.0
eslint-config-airbnb-typescript ^18.0.0
eslint-config-prettier ^9.1.0
eslint-plugin-github ^4.10.2
eslint-plugin-import ^2.29.1
prettier 3.2.5
typescript ^5.4.5
vitest ^1.5.3
Not sure why this is but currently v1
in GHA is version v1.9.0
.
❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.8.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
content-disposition: attachment; filename=Codex--await-local-workflow-run-v1.8.0-0-gf936ab4.tar.gz
❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.9.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
content-disposition: attachment; filename=Codex--await-local-workflow-run-v1-0-gda29ec8.tar.gz
❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.10.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
gh: Not Found (HTTP 404)
curl: (6) Could not resolve host: null
❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.11.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
gh: Not Found (HTTP 404)
curl: (6) Could not resolve host: null
❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.12.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
gh: Not Found (HTTP 404)
curl: (6) Could not resolve host: null
Seeing this failure on v1.8.0
:
Error: getWorkflowId: An unexpected error has occurred: Failed to get Workflow ID for '<workflow>', available workflows: [<list of 30 workflows>]
Error: Failed: Failed to get Workflow ID for '<workflow>', available workflows: [<list of 30 workflows>]
Warning: Does the token have the correct permissions?
Error: Failed to get Workflow ID for '<workflow>', available workflows: [<list of 30 workflows>]
I believe the issue is probably lack of pagination support as the default results per page is 30.
Would it be possible to get rid of the warning that comes, if you start the await right after starting the job?
Warning: Failed to find in_progress Jobs for Workflow Run xxx
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: .github/renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid lockFileMaintenance.schedule: 'Invalid schedule: Failed to parse "every month on the first day of the month"'
return-dispatch
is successfully finding my Run ID using the distinct ID.
However, I'm immediately attempting to run await-remote-run
per your documentation using the run_id
returned from return-dispatch
and it is failing to fund the run based on this ID. I know the ID is correct though, because when I click the outputed URL from return-dispatch
it takes me to my other repositories run and it is running as expected. Here are the outputs / log from both return-dispatch
and then followed by await-remote-run
. Notice the error getWorkflowRunState: An unexpected error has occurred: Not found
Hello! I'm using your helpful guide to return the run_id and am having some issues. Included is a screenshot of the workflow. Any guidance or suggestions is appreciated. Thank you!
(I've covered the run_id returned for privacy reasons but a run id is returned on the remote run
Issue: It looks like the Run ID is being identified but not being returned in the process
Scenario:
On push Repo A is attempting to access and run the tests from Repo B:
action.yml file for Repo A
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Dispatch and return Run ID
uses: codex-/[email protected]
id: return-dispatch
with:
token: ${{ secrets.ACCESS_TOKEN }} # Note this is NOT GITHUB_TOKEN but a PAT
ref: {branch}
repo: {repo}
owner: {owner}
workflow: ci.yml
workflow_inputs: '{"cake":"delicious"}'
workflow_timeout_seconds: 100 # Default: 300
- name: Evaluate that the Run ID output has been set
run: |
if [ "${{ steps.return_dispatch.outputs.run_id }}" == "" ]; then
echo "Failed to return Run ID"
exit 1
fi
- name: Output fetched Run ID
run: echo ${{ steps.return_dispatch.outputs.run_id }}
- name: Await Run ID ${{ steps.return_dispatch.outputs.run_id }}
uses: Codex-/[email protected]
with:
token: ${{ github.token }}
repo: {repo}
owner: {owner}
run_id: ${{ steps.return_dispatch.outputs.run_id }}
run_timeout_seconds: 300 # Optional
poll_interval_ms: 5000 # Optional
Repo B: Test file being accessed and return_id being requested:
workflow_dispatch:
inputs:
distinct_id:
required: true
cake: # Test for input passthrough.
required: true
push:
jobs:
test:
name: run tests
runs-on: ubuntu-latest
env:
E2E_TESTS_BASE_URL: ${{ secrets.ENV }}
steps:
- name: echo distinct ID ${{ github.event.inputs.distinct_id }}
run: echo ${{ github.event.inputs.distinct_id }}
- name: echo input passthrough
run: echo ${{ github.event.inputs.cake }}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.