Skip to content

Instantly share code, notes, and snippets.

View javigomez's full-sized avatar

Javier Gomez javigomez

View GitHub Profile
@javigomez
javigomez / sourcegraph_batch_changes_example.yml
Created October 13, 2022 14:54
sourcegraph batch changes example
name: migrate-gha-runners-to-ephemeral
description: This batch change migrates GHA runners to ephemeral
on:
# Find all repositories that contain [self-hosted, {runner}] without -ephemeral suffix
- repositoriesMatchingQuery: context:global content:"runs-on:" NOT content:"-ephemeral" lang:yaml file:.github/workflows/* patternType:literal
# Describe the changeset (e.g., GitHub pull request) you want for each repository.
changesetTemplate:
title: 'build(NOJIRA-1234): migrate GHA runners to ephemeral'
body: Updates GHA runners to ephemeral runners. For more info check [this](https://www.notion.so/typeform/Migration-to-Ephemeral-runners-ffd85bafaed44cfd8a0c135701c4a6a7)
branch: NOJIRA-1234-ephemeral-runners