Skip to content

Commit

Permalink
Add generate-workflows job in a new file
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Aug 27, 2024
1 parent 5b1f34d commit 2a4df97
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/misc_1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate-workflows

name: Misc 1

on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- main

env:
CORE_REPO_SHA: 59f86abe7129834ea2893ff2abb197fb14690e58
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

jobs:

generate-workflows:
name: generate-workflows
runs-on: ubuntu-latest
if: |
!contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows')
&& github.actor != 'opentelemetrybot'
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install tox
run: pip install tox

- name: Run tests
run: tox -e generate-workflows

- name: Check workflows are up to date
run: git diff --exit-code || (echo 'Generated workflows are out of date, run "tox -e generate-workflows" and commit the changes in this PR.' && exit 1)

0 comments on commit 2a4df97

Please sign in to comment.