Skip to content

boxuk/checkout-pr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

WordPress Deps Auto Updater - Checkout

This is a simple GitHub Worklfow to checkout the PR the boxuk/wp-deps-auto-update action.

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.

# 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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published