Skip to content

Commit

Permalink
Only pull code if on dev or main
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin1099 authored Nov 30, 2024
1 parent 769a681 commit beaa08d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ jobs:
echo "PYTHON_FILES_CHANGED=${{ env.PYTHON_FILES_CHANGED }}"
echo "BLACK_OUTCOME=${{ env.BLACK_OUTCOME }}"
echo "On=${{ github.ref }}"
- name: Pull changes if main or dev
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
run: |
git pull
- name: Merge dev into main
if: github.ref == 'refs/heads/dev' && (env.PYTHON_FILES_CHANGED == 'false' || env.BLACK_OUTCOME == 'success')
uses: peter-evans/create-pull-request@v3
Expand Down

0 comments on commit beaa08d

Please sign in to comment.