- github: https://github.com/haya14busa
- twitter: https://twitter.com/haya14busa
- blog: http://haya14busa.com/
Feel free to open new issue :)
✅ The missing status check utility for workflow_run action.
License: MIT License
Feel free to open new issue :)
Workflow snippet triggered on workflow_run
:
jobs:
preview:
name: 'Deploy Preview'
runs-on: ubuntu-20.04
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: haya14busa/action-workflow_run-status@v1
This workflow works correctly, but breaks when trying to use this action as above. Actions error log:
Run haya14busa/action-workflow_run-status@v1
with:
github_token: ***
requested_as_pending: true
Error: job not found: preview
This is likely the same issue that was recently closed by the issue author for unknown reasons. Unlike others chiming in there I am not using any matrix.
Quick glance over the code suggests that job.name
is probably Deploy Preview
which is obviously not going to match the context.job
that the error logs as preview
. Presumably if I match the name
value to the job object name the two values will resolve this issue.
action-workflow_run-status/src/main.ts
Lines 84 to 87 in 967ed83
It looks like you could reference a job by id? For those using a matrix, that may not work? context.github.job
provides the current job id. Will this work?:
const job = jobs.data.jobs.find(j => j.id === context.github.job)
I don't develop actions, and the documentation is lacking what the context.job.job
object contains. One issue I linked to mentions context.jobId
but I am lacking documentation to know if that's suggested or valid.
E.g. for cdapio/cdap#13455
point to the run https://github.com/cdapio/cdap/runs/2785539942 that was canceled due to a timeout
Hi
Witch GITHUB_TOKEN permissions are required by this action to work correctly?
Getting the following error while using this action:
##[error]job not found: build
As Node 16 is now the new default at GitHub Actions in hosted runners and Node 12 reached EOL April 2022 this action should run with Node 16 by default.
Similar changes were implemented e.g. for codecov/codecov-action#689, checkout or actions/setup-java#290.
#21 is closed, but still not found issue happen on matrix.
Run haya14busa/action-workflow_run-status@v1
with:
github_token: ***
requested_as_pending: true
env:
...
CI_NODE_TOTAL: 4
PARALLEL_STEPS: 1
CI_NODE_GROUP: 4
Warning: The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Error: job not found: System-Test
I think we need some option for matrix like:
jobs:
post-test-success:
runs-on: ubuntu-latest
steps:
- uses: haya14busa/action-workflow_run-status@v1
with:
matrix: ${{ matrix.node_group }}
- uses: actions/checkout@v2
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.