Fix workflow entry and variable read

This commit is contained in:
TwistedUmbrellaX 2024-03-11 17:37:38 -04:00
parent 15d5c57441
commit 65fb0c3f24

View File

@ -4,7 +4,7 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: 'v0.1' description: 'Version'
required: true required: true
type: string type: string
@ -36,7 +36,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4.3.1 uses: actions/upload-artifact@v4.3.1
with: with:
name: ConfusedPolarBear.Plugin.IntroSkipper-${{ github.event.head_commit.message }}.dll name: ConfusedPolarBear.Plugin.IntroSkipper-${{ github.event.inputs.version }}.dll
path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
if-no-files-found: error if-no-files-found: error
@ -45,18 +45,18 @@ jobs:
with: with:
files: | files: |
ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
dest: intro-skipper-${{ github.event.head_commit.message }}.zip dest: intro-skipper-${{ github.event.inputs.version }}.zip
- name: Generate md5 - name: Generate md5
run: md5sum intro-skipper-${{ github.event.head_commit.message }}.zip > intro-skipper-${{ github.event.head_commit.message }}.md5 run: md5sum intro-skipper-${{ github.event.inputs.version }}.zip > intro-skipper-${{ github.event.inputs.version }}.md5
- name: Publish release - name: Publish release
uses: 8bitDream/action-github-releases@v1.0.0 uses: 8bitDream/action-github-releases@v1.0.0
with: with:
repo_token: "${{ secrets.GITHUB_TOKEN }}" repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.event.head_commit.message }} automatic_release_tag: ${{ github.event.inputs.version }}
prerelease: false prerelease: false
title: intro-skipper-${{ github.event.head_commit.message }} title: intro-skipper-${{ github.event.inputs.version }}
files: | files: |
intro-skipper-${{ github.event.head_commit.message }}.md5 intro-skipper-${{ github.event.inputs.version }}.md5
intro-skipper-${{ github.event.head_commit.message }}.zip intro-skipper-${{ github.event.inputs.version }}.zip