Draft-Release erstellen #10
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: Draft-Release erstellen | |
# Controls when the action will run. Workflow runs when manually triggered using the UI | |
# or API. | |
on: | |
workflow_dispatch: | |
inputs: | |
title: | |
description: 'Release Titel' | |
# Default value if no value is explicitly provided | |
default: '' | |
# Input has to be provided for the workflow to run | |
required: true | |
# The data type of the input | |
type: string | |
commit: | |
description: 'Commit SHA des Runs mit den hochzuladenen Artefakten' | |
default: '' | |
type: string | |
jobs: | |
# This workflow contains a single job called "greet" | |
release: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: dawidd6/action-download-artifact@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
workflow: gradle-build.yml | |
workflow_conclusion: success | |
name: application | |
commit: ${{ inputs.commit || github.event.pull_request.head.sha }} | |
- name: Release erstellen | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: 'latest' | |
prerelease: false | |
draft: true | |
title: ${{ inputs.title || null }} | |
files: | | |
full/*.* | |
basic/*.* | |