Skip to content

Commit

Permalink
ci: fix autoupdate poetry workflow (#1085)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <[email protected]>
  • Loading branch information
Alex-Izquierdo authored Oct 7, 2024
1 parent e52e7cc commit a56d04b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/autoupdate-poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
autoupdate-poetry-lock:
runs-on: ubuntu-latest
if: github.repository == 'ansible/eda-server'
outputs:
lock-changed: ${{ steps.lock-changed.outputs.lock-changed }}
steps:
Expand Down Expand Up @@ -40,6 +41,7 @@ jobs:
else
echo "Changes detected"
echo "lock-changed=true" >> $GITHUB_OUTPUT
fi
- name: Push changes
if: steps.lock-changed.outputs.lock-changed == 'true'
Expand All @@ -52,7 +54,7 @@ jobs:
create-pr:
needs:
- autoupdate-poetry-lock
if: needs.autoupdate-poetry-lock.outputs.lock-changed == 'true'
if: github.repository == 'ansible/eda-server' && needs.autoupdate-poetry-lock.outputs.lock-changed == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout autoupdate-poetry-lock branch
Expand Down

0 comments on commit a56d04b

Please sign in to comment.