authenticate testuser via api to create private repo

This commit is contained in:
benniekiss 2024-07-05 18:55:54 +00:00
parent 8b412e5ed3
commit 3772ac42c9

View file

@ -24,7 +24,7 @@ jobs:
- name: testdata/upload-download-private
run: |
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
curl the API with the token to switch testuser to being private which should make it so the line below will create a private repo instead of a public one and run the action from it
curl http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }}/api/v1/user
forgejo-test-helper.sh run_workflow testdata/upload-download http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser upload-download-private forgejo-release "${{ steps.forgejo.outputs.token }}"
- name: testdata/nested-upload-download