ci(#3): 🐛 Try http action from github
This commit is contained in:
parent
658a6b37d6
commit
5679d19b3f
1 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@ jobs:
|
||||||
run: go build -o loic
|
run: go build -o loic
|
||||||
- name: Check if Package Exists
|
- name: Check if Package Exists
|
||||||
id: check_package_exists
|
id: check_package_exists
|
||||||
uses: actions/http@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary
|
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary
|
||||||
method: GET
|
method: GET
|
||||||
|
@ -24,7 +24,7 @@ jobs:
|
||||||
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
|
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
|
||||||
- name: Create Package if it Doesn't Exist
|
- name: Create Package if it Doesn't Exist
|
||||||
if: steps.check_package_exists.outcome == 'failure'
|
if: steps.check_package_exists.outcome == 'failure'
|
||||||
uses: actions/http@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic
|
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic
|
||||||
method: POST
|
method: POST
|
||||||
|
@ -33,7 +33,7 @@ jobs:
|
||||||
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
|
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
|
||||||
- name: Create New Version
|
- name: Create New Version
|
||||||
id: create_version
|
id: create_version
|
||||||
uses: actions/http@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary/versions
|
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary/versions
|
||||||
method: POST
|
method: POST
|
||||||
|
@ -45,7 +45,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "version_id=$(jq -r '.id' <<< "${{ steps.create_version.body }}")" >> $GITHUB_OUTPUT
|
echo "version_id=$(jq -r '.id' <<< "${{ steps.create_version.body }}")" >> $GITHUB_OUTPUT
|
||||||
- name: Upload Asset
|
- name: Upload Asset
|
||||||
uses: actions/http@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
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
|
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
|
method: POST
|
||||||
|
|
Loading…
Reference in a new issue