Skip to content

Commit e345971

Browse files
authored
CI: try to get push (#15945)
* connect * input * freeze * -f
1 parent 6e34607 commit e345971

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/actions/pkg-publish/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
if: inputs.pypi-test-token != ''
3131
with:
3232
user: __token__
33-
password: ${{ secrets.test_pypi_token_lai }}
33+
password: ${{ input.pypi-test-token }}
3434
repository_url: https://test.pypi.org/legacy/
3535
packages_dir: pypi/
3636
verbose: true

.github/workflows/legacy-checkpoints.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
working-directory: ./
7373
env:
7474
PACKAGE_NAME: pytorch
75+
FREEZE_REQUIREMENTS: 1
7576
run: |
7677
pip install . -f https://download.pytorch.org/whl/cpu/torch_stable.html
7778
pip list

.github/workflows/release-pypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ jobs:
123123
- name: GIT Push
124124
run: |
125125
git status
126-
git push
126+
# force push is not very nice
127+
# but so far the push is rejected even with exception for this user
128+
git push -f
127129
128130
waiting:
129131
# TODO: replace with back signal from build images/ loop checking for a specific branch?
@@ -181,7 +183,7 @@ jobs:
181183

182184
publish-packages:
183185
runs-on: ubuntu-20.04
184-
needs: waiting
186+
needs: [build-packages, waiting]
185187
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
186188
steps:
187189
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)