try curl
This commit is contained in:
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -11,9 +11,17 @@ jobs:
|
|||||||
- name: Get the Tag
|
- name: Get the Tag
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/}
|
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/}
|
||||||
|
- name: Install cURL
|
||||||
|
run: |
|
||||||
|
apt install -y curl
|
||||||
|
apt install -y bash
|
||||||
- name: Netdisco Release
|
- name: Netdisco Release
|
||||||
uses: elgohr/Github-Release-Action@master
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
args: 'Netdisco ${{ steps.get_tag.outputs.TAGVALUE }}'
|
curl -sL -X POST -H "Content-Type: application/json" \
|
||||||
|
-u "$GITHUB_TOKEN" \
|
||||||
|
--data "{\"tag_name\": \"${{ steps.get_tag.outputs.TAGVALUE }}\", \
|
||||||
|
\"target_commitish\": \"master\", \
|
||||||
|
\"name\": \"Netdisco ${{ steps.get_tag.outputs.TAGVALUE }}\"}" \
|
||||||
|
https://api.github.com/repos/netdisco/netdisco/releases
|
||||||
|
|||||||
Reference in New Issue
Block a user