For some reason my workflow_dispatch
event is not showing under the actions tab. At this point I feel like i have tried everything.
The code is on the master branch (and master is set as main). I have the the exact same code (at least I think) on a test repo and things show up as I would expect. Is there something I could be doing wrong here?
Workflow file
name: Create New Release
on:
workflow_dispatch:
inputs:
release-version:
description: 'Release version tag'
default: 'v1.0.0'
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Prepare Files For Release"
uses: ./.github/actions/prepare-files-for-release
id: prepare-files
- name: "Add, Commit And Push Prepared Files"
run: |
git config --global user.email "releasebot@users.noreply.github.com"
git config --local user.name "release bot"
git add -A
git commit -m "Update Photon Networking code to ${{ steps.prepare-files.outputs.new-networking-version }}"
git push
- name: "Merge Master Into Release"
run: |
git fetch
git checkout release
git merge master --no-ff
git push
- name: "Tag Release"
run: |
git tag ${{ github.event.inputs.release-version }}
git push --tags
Action file
name: "Prepare files for release"
description: "Modifies various files in preparation for release"
inputs:
repo-token:
description: "Token with permissions to do repo things"
required: false
tag-version-string:
description: "The string specifying what new version we are releasing"
required: false
outputs:
new-networking-version:
description: "The networking version our photonNetworkingVersion has been set to"
runs:
using: "node12"
main: "dist/index.js"