Create Public Draft Release #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Public Draft Release | |
on: | |
workflow_dispatch: | |
inputs: | |
service: | |
description: "Release for service type" | |
required: true | |
type: string | |
tag: | |
description: "Release Tag" | |
required: true | |
type: string | |
name: | |
description: "Release Name" | |
required: true | |
type: string | |
body: | |
description: "Release Message" | |
required: true | |
type: string | |
permissions: | |
contents: write | |
jobs: | |
create_release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Decode Base64 | |
run: | | |
decoded_string=$(echo "${{ inputs.body }}" | base64 -d) | |
echo "Decoded string: $decoded_string" | |
cat > ${{ github.workspace }}/body.txt <<-EOF | |
$decoded_string | |
EOF | |
- name: Create Public Draft Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: ${{ github.workspace }}/body.txt | |
draft: true | |
name: "${{ inputs.name }}" | |
tag_name: "${{ inputs.tag }}" | |
token: ${{ secrets.GITHUB_TOKEN }} |