From 3d290b29718aa06804541bddf70e9d765c69483c Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Mon, 2 Sep 2024 08:31:43 +0000 Subject: [PATCH 1/5] trigger documentation branch on tag --- .github/workflows/documentation.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 53277f2..37b78ea 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -2,8 +2,8 @@ name: documentation on: push: - branches: - - main + tags: + - 'v*.*.*' workflow_dispatch: permissions: @@ -36,7 +36,6 @@ jobs: make html - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/sphinx_action' }} with: publish_branch: gh-pages github_token: ${{ secrets.TOKEN_GH }} From 0a93fc3aa67039a84aaf3d2d6bae30b27c0ec638 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Mon, 2 Sep 2024 08:34:30 +0000 Subject: [PATCH 2/5] add paths to pytest to only trigger on python related changes --- .github/workflows/pytest.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index aac8afe..f204c7d 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -2,7 +2,14 @@ name: Run Tests on: pull_request: - branches: ['main', 'develop'] + branches: + - main + - develop + paths: + - scraibe/** + - pyproject.toml + - requirements.txt + - test/** workflow_dispatch: jobs: From 85027dd5350c92b00036e6d76550c865eddf3c12 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Mon, 2 Sep 2024 08:38:38 +0000 Subject: [PATCH 3/5] trigger ruff only on changes in python files --- .github/workflows/ruff.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 1e5c277..df0152c 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,9 +1,11 @@ name: Ruff -on: push +on: + push: + paths: + - '**.py' jobs: ruff: runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' || (github.event_name == 'push') }} steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 \ No newline at end of file From d8a22f15fe950312ddd7add03c4937ee85783d0f Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Mon, 2 Sep 2024 12:04:54 +0000 Subject: [PATCH 4/5] fixed Syntax --- .github/auto_label_pr.yml | 1 + .github/workflows/auto-label-issue.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/auto_label_pr.yml b/.github/auto_label_pr.yml index 579a44c..edb43a0 100644 --- a/.github/auto_label_pr.yml +++ b/.github/auto_label_pr.yml @@ -42,6 +42,7 @@ github: - changed-files: - any-glob-to-any-file: - '.gitignore' + - '.github/ISSUE_TEMPLATE/*' dependencies: - changed-files: diff --git a/.github/workflows/auto-label-issue.yaml b/.github/workflows/auto-label-issue.yaml index 1b51c18..71a9282 100644 --- a/.github/workflows/auto-label-issue.yaml +++ b/.github/workflows/auto-label-issue.yaml @@ -1,7 +1,7 @@ name: Labeling new issue on: issues: - types: ['opened', 'reopened'] + types: [opened, reopened] jobs: build: From 189b23e17baec5d6bc0e33fb94d8a82119559117 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Mon, 2 Sep 2024 12:32:28 +0000 Subject: [PATCH 5/5] added paths varibale to workflow trigger --- .github/workflows/pypi.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 88c4521..a2641ee 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -6,6 +6,10 @@ on: - develop types: - closed + paths: + - scraibe/** + - pyproject.toml + push: tags: - 'v*.*.*'