Skip to content

Commit

Permalink
Switch package updates over to composite actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelacey committed Jan 30, 2023
1 parent 3d75055 commit 9a5074b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/package-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,11 @@ jobs:
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- uses: actions/setup-python@v4

- run: cp Pipfile.lock{,.bak}
- run: pip install pipenv wheel --upgrade
- run: pipenv update

- id: pipfile-lock-diff
run: |
wget https://gist.githubusercontent.com/ddahan/215472a4aa1805160aba0a77902e40da/raw/83da35ad413b0d1bb437e2d78f5381100cd5b80e/pipenvdiff.py
echo 'diff<<EOF' >> $GITHUB_OUTPUT
python pipenvdiff.py Pipfile.lock{.bak,} >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- run: rm pipenvdiff.py Pipfile.lock.bak

- uses: peter-evans/create-pull-request@v4
- uses: gundotio/package-updates/python@v1
with:
title: Package updates
body: |
```
${{ steps.pipfile-lock-diff.outputs.diff }}
```
author: GitHub <[email protected]>
base: master
title: (Deps) Package updates
commit: Package updates
branch: package-updates
committer: GitHub <[email protected]>
commit-message: |
Package updates
${{ steps.pipfile-lock-diff.outputs.diff }}
delete-branch: true
reviewers: |
stevelacey
wadewilliams
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/build
/coverage
/dist
/worf.egg-info

0 comments on commit 9a5074b

Please sign in to comment.