Skip to content

Commit

Permalink
Rename to generate-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 24, 2024
1 parent a93612b commit 111571d
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate_workflows_lib/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "generate_workflows_lib"
name = "generate-workflows-lib"
dynamic = ["version"]
description = "A library to generate workflows"
license = "Apache-2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate_workflows
# This file is generated automatically by executing tox -e generate-workflows

name: Contrib {{ file_number }}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate_workflows
# This file is generated automatically by executing tox -e generate-workflows

name: Lint {{ file_number }}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate_workflows
# This file is generated automatically by executing tox -e generate-workflows

name: Misc {{ file_number }}

Expand Down Expand Up @@ -35,10 +35,10 @@ jobs:

- name: Run tests
run: tox -e {{ job_data }} -- -ra
{%- if job_data == "generate_workflows" %}
{%- if job_data == "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)
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)
{%- endif %}
{%- if job_data == "generate" %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate_workflows
# This file is generated automatically by executing tox -e generate-workflows

name: Test {{ file_number }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_0.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate_workflows
# This file is generated automatically by executing tox -e generate-workflows

name: Lint 0

Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/misc.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/misc_0.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate_workflows
# This file is generated automatically by executing tox -e generate-workflows

name: Misc 0

Expand Down Expand Up @@ -108,6 +108,9 @@ jobs:
- name: Run tests
run: tox -e generate-workflows -- -ra

- 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)

shellcheck:
name: shellcheck
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_0.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate_workflows
# This file is generated automatically by executing tox -e generate-workflows

name: Test 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit this file.
# This file is generated automatically by executing tox -e generate_workflows
# This file is generated automatically by executing tox -e generate-workflows

name: Test 1

Expand Down

0 comments on commit 111571d

Please sign in to comment.