Skip to content

urcomputeringpal/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ur Computering Pal

👋 https://urcomputeringpal.com

Reusable Actions

Workflow Failure Issues

Listens for workflow_run events and open issues when a workflow fails. Useful for being alerted to workflow failures before they interrupt the progress of multiple team members.

name: open issues on workflow failure, close on success
on:
  workflow_run:
    # Configure the workflows to monitor here
    workflows:
      - test
      - release
      - etc
    types:
      - completed
jobs:
  workflow-failure-issues:
    uses: urcomputeringpal/.github/.github/workflows/workflow-failure-issues.yaml@main
    # Configure the type of events to listen for here
    if: |
      (
        github.event_name == 'schedule' ||
        github.event.workflow_run.head_branch == github.event.repository.default_branch
      )

Renovate

Like dependabot, but customizable. This workflow wraps https://github.com/renovatebot/github-action with some curated defaults. Requires a private GitHub App be installed to grant the permissions necessary to update Actions workflows etc.

Setup

  • Create a new app
  • Configure the app permissions and your renovate.js as described in the Renovate documentation.
  • Add this workflow in a PR. Once merged, Renovate will open an onboarding PR that explains what Renovate will do and how to configure it.
name: renovate
on:
  push:
    branches:
      - main
      - renovate/configure
  pull_request:
  workflow_dispatch: {}
  schedule:
    - cron:  '0 */6 * * *'
jobs:
  renovate:
    name: Update
    if: github.event_name != 'pull_request'
    uses: urcomputeringpal/.github/.github/workflows/renovate.yaml@main
    with:
      renovate_app_slug: your-app-name
      onboarding: 'true'
    secrets:
      RENOVATE_APP_ID: ${{ secrets.RENOVATE_APP_ID }}
      RENOVATE_APP_PEM: ${{ secrets.RENOVATE_APP_PEM }}

  validate:
    name: Validate
    if: github.event_name == 'pull_request'
    uses: urcomputeringpal/.github/.github/workflows/renovate.yaml@main
    with:
      renovate_app_slug: your-app-name
      dry_run_branch: ${{ github.event.pull_request.head.ref }}
    secrets:
      RENOVATE_APP_ID: ${{ secrets.RENOVATE_APP_ID }}
      RENOVATE_APP_PEM: ${{ secrets.RENOVATE_APP_PEM }}