-
-
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.
ci: use coatl-dev/actions/pip-compile-3.11
drop dependabot pip check
- Loading branch information
1 parent
7709808
commit b18714f
Showing
3 changed files
with
53 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: pip-compile | ||
|
||
on: | ||
schedule: | ||
# Day 28 at 12:00 PST | ||
- cron: '0 20 28 * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pip-compile: | ||
runs-on: ubuntu-latest | ||
env: | ||
REQUIREMENTS_PATH: 'requirements.txt' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: coatl-dev-pip-compile | ||
uses: coatl-dev/actions/pip-compile-3.11@coatl | ||
with: | ||
path: ${{ env.REQUIREMENTS_PATH }} | ||
|
||
- name: Detect changes | ||
id: git-diff | ||
uses: coatl-dev/actions/simple-git-diff@coatl | ||
with: | ||
path: ${{ env.REQUIREMENTS_PATH }} | ||
|
||
- name: Import GPG key | ||
if: ${{ success() && steps.git-diff.outputs.diff == 'true' }} | ||
id: gpg-import | ||
uses: coatl-dev/actions/gpg-import@coatl | ||
with: | ||
passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }} | ||
private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }} | ||
|
||
- name: Commit changes | ||
if: ${{ success() && steps.git-diff.outputs.diff == 'true' }} | ||
run: | | ||
git checkout -B pip-compile-autoupdate | ||
git add ${{ env.REQUIREMENTS_PATH }} | ||
git commit -m "pip(deps): pip-compile autoupdate" | ||
git push --force --set-upstream origin pip-compile-autoupdate | ||
- name: Create Pull Request | ||
if: ${{ success() && steps.git-diff.outputs.diff == 'true' }} | ||
uses: coatl-dev/actions/create-pr@coatl | ||
with: | ||
gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }} |
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