Skip to content

Commit

Permalink
Add condition to skip generate-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Aug 5, 2024
1 parent 73cecd2 commit 2d9a9af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
{{ job_data }}:
name: {{ job_data }}
runs-on: ubuntu-latest
{%- if job_data == "generate-workflows" %}
if: |
!contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows')
&& github.actor != 'opentelemetrybot'
{%- endif %}
steps:
- name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %}
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/misc_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ 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
Expand Down

0 comments on commit 2d9a9af

Please sign in to comment.