fix(#3): ⚗️ Add github url

This commit is contained in:
Daniel Sy 2025-03-28 12:28:12 +01:00
parent 5679d19b3f
commit 21a70013f4
Signed by: Daniel.Sy
GPG key ID: 1F39A8BBCD2EE3D3

View file

@ -16,7 +16,7 @@ jobs:
run: go build -o loic
- name: Check if Package Exists
id: check_package_exists
uses: fjogeleit/http-request-action@v1
uses: github.com/fjogeleit/http-request-action@v1
with:
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary
method: GET
@ -24,7 +24,7 @@ jobs:
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
- name: Create Package if it Doesn't Exist
if: steps.check_package_exists.outcome == 'failure'
uses: fjogeleit/http-request-action@v1
uses: github.com/fjogeleit/http-request-action@v1
with:
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic
method: POST
@ -33,7 +33,7 @@ jobs:
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
- name: Create New Version
id: create_version
uses: fjogeleit/http-request-action@v1
uses: github.com/fjogeleit/http-request-action@v1
with:
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary/versions
method: POST
@ -45,7 +45,7 @@ jobs:
run: |
echo "version_id=$(jq -r '.id' <<< "${{ steps.create_version.body }}")" >> $GITHUB_OUTPUT
- name: Upload Asset
uses: fjogeleit/http-request-action@v1
uses: github.com/fjogeleit/http-request-action@v1
with:
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary/versions/${{ steps.get_version_id.outputs.version_id }}/assets
method: POST