-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from 7rikazhexde/dev24-11-3
🔧Update workflows
- Loading branch information
Showing
3 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|