Skip to content

Commit 0f739de

Browse files
authored
chore: fix repeat pipfile updates (#1547)
1 parent eebcd27 commit 0f739de

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/pipfile-update.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,25 @@ jobs:
1313
with:
1414
ref: ${{ github.head_ref }}
1515
token: ${{ secrets.RENKU_CI_TOKEN }}
16+
- name: Check previous commit
17+
id: check-commit
18+
run: |
19+
echo "::set-output name=needs_update::$(git log --pretty=format:%s -n 1)"
20+
- name: Print previous commit
21+
run: echo "${{ steps.check-commit.outputs.needs_update }}"
1622
- name: Setup python
23+
if: "steps.check-commit.outputs.needs_update != 'chore: automatically update Pipfile.lock'"
1724
uses: actions/setup-python@v1
1825
with:
1926
python-version: 3.7
2027
- name: Update Pipfile.lock
28+
if: "steps.check-commit.outputs.needs_update != 'chore: automatically update Pipfile.lock'"
2129
run: |
2230
python -m pip install --upgrade pip
2331
pip install pipenv
2432
pipenv lock
2533
- name: Commit changed Pipfile.lock
34+
if: "steps.check-commit.outputs.needs_update != 'chore: automatically update Pipfile.lock'"
2635
run: |
2736
git config --local user.email "[email protected]"
2837
git config --local user.name "RenkuBot"

0 commit comments

Comments
 (0)