try other release script

This commit is contained in:
Oliver Gorwits
2021-08-17 15:33:48 +01:00
parent 4abefdb842
commit d6d56fd78c

View File

@@ -4,20 +4,28 @@ on:
tags: tags:
- '2.[0-9][0-9][0-9][0-9][0-9][0-9]' - '2.[0-9][0-9][0-9][0-9][0-9][0-9]'
jobs: jobs:
build: release_netdisco:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - name: Checkout
- name: Get the Tag uses: actions/checkout@v2
id: get_tag - name: Release
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/} uses: softprops/action-gh-release@v1
- name: Netdisco Release #jobs:
env: # build:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} # runs-on: ubuntu-latest
run: | # steps:
curl -sL -X POST -H "Content-Type: application/json" \ # - uses: actions/checkout@master
-u "$GITHUB_TOKEN" \ # - name: Get the Tag
--data "{\"tag_name\": \"${{ steps.get_tag.outputs.TAGVALUE }}\", \ # id: get_tag
\"target_commitish\": \"master\", \ # run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/}
\"name\": \"Netdisco ${{ steps.get_tag.outputs.TAGVALUE }}\"}" \ # - name: Netdisco Release
https://api.github.com/repos/netdisco/netdisco/releases # env:
# GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
# run: |
# 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