-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Describe the bug
When using this action targeting master, the inputs are not passed into the function as jobInputs. I believe this is because dist/index.js has not been compiled with the latest ts code:
To Reproduce
Steps to reproduce the behavior:
- Reference the action in a workflow with the inputs set and version pointing to master
example ci.yml: (truncated)
on:
workflow_dispatch:
inputs:
rebuild:
description: 'Rebuild the branch before deploying'
required: true
type: boolean
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
# Notify
# This job will send a slack notification when the workflow is started.
notify-start:
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github/config
- name: Send Slack Notification - Started
uses: act10ns/slack@master
with:
status: starting
message: Starting Manual ${{ inputs.rebuild == true && 'Rebuild and ' || '' }}Deploy
config: .github/config/slack.yml
inputs: ${{ toJson(inputs) }}
example slack.yml (truncated)
- title: RAW #This is a debug output to the slack message
value: "{{#each this}}{{@key}}\n{{/each}}"
short: false
- title: Inputs
value: "{{#each jobInputs}}{{@key}}: {{this}}\n{{/each}}"
short: false
Expected behavior
I expect the inputs to get output in the slack message using the above field.
Screenshots
Github Action Job setup, referencing the latest SHA d2d8b23

Debug output of action missing jobInputs, (redacted org info)

Additional context
This is the RAW output in the slack message displaying all the available objects:
Starting Manual Deploy
RAW
env
payload
jobName
jobStatus
jobSteps
jobMatrix
eventName
workflow
workflowUrl
workflowRunUrl
repositoryName
repositoryUrl
runId
runNumber
sha
shortSha
branch
actor
action
ref
refType
refUrl
diffRef
diffUrl
description
sender
ts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels