1 file changed
+18
@@ -0,0 +1,18 @@
|
||||
name: probe
|
||||
on: push
|
||||
jobs:
|
||||
probe:
|
||||
runs-on: fedora
|
||||
steps:
|
||||
- run: |
|
||||
P=https://git.plabble.org/api/packages/job79/generic/git-runner-mkosi/latest
|
||||
echo test > t.txt
|
||||
for u in "${{ github.repository_owner }}" token x; do
|
||||
curl -s -o /dev/null -w "upload as $u: %{http_code}\n" -u "$u:${{ secrets.GITHUB_TOKEN }}" --upload-file t.txt "$P/probe-$u.txt"
|
||||
curl -s -o /dev/null -w "delete as $u: %{http_code}\n" -u "$u:${{ secrets.GITHUB_TOKEN }}" -X DELETE "$P/probe-$u.txt"
|
||||
done
|
||||
curl -s -o /dev/null -w "bearer upload: %{http_code}\n" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" --upload-file t.txt "$P/probe-b.txt"
|
||||
curl -s -o /dev/null -w "list files: %{http_code}\n" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://git.plabble.org/api/v1/packages/job79/generic/git-runner-mkosi/latest/files
|
||||
dnf install -yq podman >/dev/null
|
||||
podman login -u "${{ github.repository_owner }}" -p "${{ secrets.GITHUB_TOKEN }}" git.plabble.org || true
|
||||
podman login -u token -p "${{ secrets.GITHUB_TOKEN }}" git.plabble.org || true
|
||||
Reference in new issue
Block a user