We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba8a59d commit c823cf5Copy full SHA for c823cf5
.github/workflows/python-package.yml
@@ -61,6 +61,13 @@ jobs:
61
python_version: "3.13"
62
steps:
63
- uses: actions/checkout@v5
64
+ with:
65
+ fetch-depth: 0
66
+ ref: ${{ github.head_ref || github.ref_name }}
67
+ - name: Sync with remote
68
+ run: |
69
+ git fetch origin
70
+ git rebase origin/${{ github.ref_name }}
71
- name: Set up Python ${{ env.python_version }}
72
uses: actions/setup-python@v6
73
with:
@@ -92,8 +99,9 @@ jobs:
92
99
if: steps.changed_files.outputs.files_changed == 'true'
93
100
uses: ad-m/github-push-action@master
94
101
102
+ branch: ${{ github.head_ref || github.ref_name }}
103
+ force: true
95
104
github_token: ${{ secrets.GITHUB_TOKEN }}
96
- branch: main
97
105
deploy:
98
106
runs-on: ubuntu-latest
107
needs: [prepare, coverage]
0 commit comments