ci: why are there two -r args to tea?

This commit is contained in:
2026-05-22 23:19:44 +00:00
parent b4205cdccb
commit b52139af93
+1 -15
View File
@@ -8,20 +8,6 @@ on:
type: boolean type: boolean
jobs: jobs:
test:
runs-on: ubuntu-latest
steps:
- run: |-
curl -sv "$GITHUB_API_URL/repos/codinget/actions-test/actions/workflows/test-inputs.yaml/dispatches" \
-X POST \
-H "Authorization: token ${{ gitea.token }}" \
-H "Content-Type: application/json" \
-d '{
"ref": "refs/heads/main",
"inputs": {
"restart": ${{ inputs.restart }}
}
}'
test-with-tea: test-with-tea:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -30,4 +16,4 @@ jobs:
- name: Add token - name: Add token
run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ gitea.token }}" --name gitea run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ gitea.token }}" --name gitea
- name: Trigger with tea - name: Trigger with tea
run: ./tea actions workflows dispatch -r "${{ gitea.repository }}" -r main --login "gitea" test-inputs.yaml run: ./tea actions workflows dispatch --repo "${{ gitea.repository }}" --ref main --login "gitea" test-inputs.yaml