Skip to content

Commit

Permalink
Merge pull request #22 from 7rikazhexde/dev24-11-3
Browse files Browse the repository at this point in the history
🔧Update workflows
  • Loading branch information
7rikazhexde authored Nov 10, 2024
2 parents e3af367 + 53f827d commit f49c2b0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/send_payload_to_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ on:
push:
branches:
- 'main'
paths:
- 'repo_dispatch_event_sender/**'
- 'tests/**'
- 'poetry.lock'

jobs:
test-and-send-dispatch:
if: github.actor != 'dependabot[bot]' && !startsWith(github.event.head_commit.message, 'Bump version') && !startsWith(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
permissions:
# Enable code checkout
contents: write
# Enable repository_dispatch triggers
actions: write
steps:
- name: Checkout code
uses: actions/[email protected]
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/update-requirements-after-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ jobs:
update-requirements:
if: github.event.pull_request.merged == true && github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
# Enable file clone, commit, and push
contents: write
# Enable reading of pull request information
pull-requests: read
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
token: ${{ secrets.PAT_FOR_PUSHES }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/[email protected]
with:
Expand All @@ -35,8 +40,8 @@ jobs:
poetry export -f requirements.txt -o requirements-dev.txt --without-hashes --with dev
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git config --local user.email "33836132+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add requirements.txt requirements-dev.txt
git commit -m ":wrench:Update requirements files after dependency update [skip ci]" || echo "No changes to commit"
git push
5 changes: 4 additions & 1 deletion .github/workflows/update_pre-commit_hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ on:
jobs:
update:
runs-on: ubuntu-latest
permissions:
# Enable file changes, commits, and pushes
contents: write
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
token: ${{ secrets.PAT_FOR_PUSHES }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/[email protected]
with:
Expand Down

0 comments on commit f49c2b0

Please sign in to comment.