This commit is contained in:
Oliver Gorwits
2021-08-15 20:12:15 +01:00
parent 67919a7d9d
commit 0e88a15be3

View File

@@ -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