https://github.com/boxuk/mark-check-status
https://github.com/boxuk/mark-check-status
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/boxuk/mark-check-status
- Owner: boxuk
- Created: 2025-01-17T11:01:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-19T12:12:15.000Z (over 1 year ago)
- Last Synced: 2026-01-01T16:33:13.205Z (7 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# WordPress Deps Auto Updater - Checkout
This is a simple GitHub Worklfow to mark the state of a status-check that's been triggered via the `workflow_run` trigger.
## Usage
You'll need to use the `boxuk/checkout-pr` action to setup your workflow if the event is triggered by `workflow_run`. We need the `worfklow_run_id` to pull the relevant PR number.
```yml
# Other config...
on:
pull_request: # For all PRs
workflow_run: # For WP Updates
workflows: ["Update WP Deps"]
types:
- completed
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout
uses: actions/checkout@v4
if: github.event_name != 'workflow_run'
- name: Checkout
uses: boxuk/checkout-pr@main
id: checkout-deps
if: github.event_name == 'workflow_run'
# Run Tests or whatever is needed...
- name: Mark Check Outcome
if: github.event_name == 'workflow_run'
uses: boxuk/mark-check-status@main
with:
status: ${{ job.status }}
pr-head-sha: ${{ steps.checkout-deps.outputs.pr-head-sha }}
```
## Contributing
Please do not submit any Pull Requests here. They will be closed.
---
Please submit your PR here instead: https://github.com/boxuk/wp-packages
This repository is what we call a "subtree split": a read-only subset of that main repository.
We're looking forward to your PR there!