Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output does not seem to appear #539

Closed
2 tasks done
richardsimko opened this issue Nov 16, 2023 · 2 comments · Fixed by #571
Closed
2 tasks done

Output does not seem to appear #539

richardsimko opened this issue Nov 16, 2023 · 2 comments · Fixed by #571
Assignees

Comments

@richardsimko
Copy link

richardsimko commented Nov 16, 2023

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

N/A

Plugin version

N/A

Node.js version

N/A

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

ubuntu-latest

Description

The output does not seem to be populated properly. The debug logs in Github actions imply that it's being set, however printing all outputs from the step shows nothing. This is the log from the start of github-action-merge-dependabot to the end of the echo step:

Log
2023-11-16T16:41:49.7200854Z ##[debug]Finishing: Run actions/checkout@v4
2023-11-16T16:41:49.7214783Z ##[debug]Evaluating condition for step: 'Auto Merge Dependabot PR'
2023-11-16T16:41:49.7217003Z ##[debug]Evaluating: success()
2023-11-16T16:41:49.7217517Z ##[debug]Evaluating success:
2023-11-16T16:41:49.7218048Z ##[debug]=> true
2023-11-16T16:41:49.7218591Z ##[debug]Result: true
2023-11-16T16:41:49.7219495Z ##[debug]Starting: Auto Merge Dependabot PR
2023-11-16T16:41:49.7277381Z ##[debug]Loading inputs
2023-11-16T16:41:49.7309335Z ##[debug]Evaluating: github.token
2023-11-16T16:41:49.7309811Z ##[debug]Evaluating Index:
2023-11-16T16:41:49.7310187Z ##[debug]..Evaluating github:
2023-11-16T16:41:49.7310576Z ##[debug]..=> Object
2023-11-16T16:41:49.7310904Z ##[debug]..Evaluating String:
2023-11-16T16:41:49.7311262Z ##[debug]..=> 'token'
2023-11-16T16:41:49.7312064Z ##[debug]=> '***'
2023-11-16T16:41:49.7312586Z ##[debug]Result: '***'
2023-11-16T16:41:49.7318491Z ##[debug]Loading env
2023-11-16T16:41:49.7326999Z ##[group]Run fastify/github-action-merge-dependabot@v3
2023-11-16T16:41:49.7327547Z with:
2023-11-16T16:41:49.7327798Z   target: minor
2023-11-16T16:41:49.7328106Z   use-github-auto-merge: true
2023-11-16T16:41:49.7328657Z   github-token: ***
2023-11-16T16:41:49.7328958Z   approve-only: false
2023-11-16T16:41:49.7329272Z   merge-method: squash
2023-11-16T16:41:49.7329609Z   skip-commit-verification: false
2023-11-16T16:41:49.7329991Z   skip-verification: false
2023-11-16T16:41:49.7330324Z ##[endgroup]
2023-11-16T16:41:49.7524060Z ##[debug]Evaluating condition for step: 'run'
2023-11-16T16:41:49.7533964Z ##[debug]Evaluating: (success() && (github.event_name == 'pull_request') && ((github.actor == 'dependabot[bot]') || (inputs.skip-verification == 'true')))
2023-11-16T16:41:49.7535188Z ##[debug]Evaluating And:
2023-11-16T16:41:49.7540566Z ##[debug]..Evaluating success:
2023-11-16T16:41:49.7541642Z ##[debug]..=> true
2023-11-16T16:41:49.7542150Z ##[debug]..Evaluating Equal:
2023-11-16T16:41:49.7543885Z ##[debug]....Evaluating Index:
2023-11-16T16:41:49.7544397Z ##[debug]......Evaluating github:
2023-11-16T16:41:49.7544895Z ##[debug]......=> Object
2023-11-16T16:41:49.7545344Z ##[debug]......Evaluating String:
2023-11-16T16:41:49.7545817Z ##[debug]......=> 'event_name'
2023-11-16T16:41:49.7546328Z ##[debug]....=> 'pull_request'
2023-11-16T16:41:49.7546812Z ##[debug]....Evaluating String:
2023-11-16T16:41:49.7547278Z ##[debug]....=> 'pull_request'
2023-11-16T16:41:49.7551323Z ##[debug]..=> true
2023-11-16T16:41:49.7551981Z ##[debug]..Evaluating Or:
2023-11-16T16:41:49.7556233Z ##[debug]....Evaluating Equal:
2023-11-16T16:41:49.7556742Z ##[debug]......Evaluating Index:
2023-11-16T16:41:49.7557241Z ##[debug]........Evaluating github:
2023-11-16T16:41:49.7557771Z ##[debug]........=> Object
2023-11-16T16:41:49.7558265Z ##[debug]........Evaluating String:
2023-11-16T16:41:49.7558756Z ##[debug]........=> 'actor'
2023-11-16T16:41:49.7559255Z ##[debug]......=> 'dependabot[bot]'
2023-11-16T16:41:49.7559800Z ##[debug]......Evaluating String:
2023-11-16T16:41:49.7560304Z ##[debug]......=> 'dependabot[bot]'
2023-11-16T16:41:49.7560778Z ##[debug]....=> true
2023-11-16T16:41:49.7561178Z ##[debug]..=> true
2023-11-16T16:41:49.7561900Z ##[debug]=> true
2023-11-16T16:41:49.7569212Z ##[debug]Expanded: (true && ('pull_request' == 'pull_request') && (('dependabot[bot]' == 'dependabot[bot]') || (inputs['skip-verification'] == 'true')))
2023-11-16T16:41:49.7570305Z ##[debug]Result: true
2023-11-16T16:41:49.7580873Z ##[debug]Starting: run
2023-11-16T16:41:49.7610657Z ##[debug]Loading inputs
2023-11-16T16:41:49.7614163Z ##[debug]Evaluating: inputs.skip-commit-verification
2023-11-16T16:41:49.7614698Z ##[debug]Evaluating Index:
2023-11-16T16:41:49.7615074Z ##[debug]..Evaluating inputs:
2023-11-16T16:41:49.7615462Z ##[debug]..=> Object
2023-11-16T16:41:49.7615798Z ##[debug]..Evaluating String:
2023-11-16T16:41:49.7616204Z ##[debug]..=> 'skip-commit-verification'
2023-11-16T16:41:49.7616748Z ##[debug]=> 'false'
2023-11-16T16:41:49.7617072Z ##[debug]Result: 'false'
2023-11-16T16:41:49.7617947Z ##[debug]Evaluating: inputs.skip-verification
2023-11-16T16:41:49.7618407Z ##[debug]Evaluating Index:
2023-11-16T16:41:49.7618747Z ##[debug]..Evaluating inputs:
2023-11-16T16:41:49.7619105Z ##[debug]..=> Object
2023-11-16T16:41:49.7619429Z ##[debug]..Evaluating String:
2023-11-16T16:41:49.7619803Z ##[debug]..=> 'skip-verification'
2023-11-16T16:41:49.7620194Z ##[debug]=> 'false'
2023-11-16T16:41:49.7620513Z ##[debug]Result: 'false'
2023-11-16T16:41:49.7622196Z ##[debug]Evaluating: github.token
2023-11-16T16:41:49.7622593Z ##[debug]Evaluating Index:
2023-11-16T16:41:49.7622946Z ##[debug]..Evaluating github:
2023-11-16T16:41:49.7623293Z ##[debug]..=> Object
2023-11-16T16:41:49.7623612Z ##[debug]..Evaluating String:
2023-11-16T16:41:49.7623971Z ##[debug]..=> 'token'
2023-11-16T16:41:49.7624489Z ##[debug]=> '***'
2023-11-16T16:41:49.7624960Z ##[debug]Result: '***'
2023-11-16T16:41:49.7626191Z ##[debug]Loading env
2023-11-16T16:41:49.7632091Z ##[group]Run dependabot/fetch-metadata@v1
2023-11-16T16:41:49.7632491Z with:
2023-11-16T16:41:49.7632776Z   skip-commit-verification: false
2023-11-16T16:41:49.7633164Z   skip-verification: false
2023-11-16T16:41:49.7633662Z   github-token: ***
2023-11-16T16:41:49.7633940Z ##[endgroup]
2023-11-16T16:41:49.9543383Z ##[debug]Verifying the job is for an authentic Dependabot Pull Request
2023-11-16T16:41:50.3876247Z Parsing Dependabot metadata
2023-11-16T16:41:50.4035179Z ::group::Outputting metadata for 1 updated dependency
2023-11-16T16:41:50.4036022Z ##[group]Outputting metadata for 1 updated dependency
2023-11-16T16:41:50.4036840Z outputs.dependency-names: vite
2023-11-16T16:41:50.4037453Z outputs.dependency-type: direct:development
2023-11-16T16:41:50.4038169Z outputs.update-type: version-update:semver-major
2023-11-16T16:41:50.4038785Z outputs.directory: /
2023-11-16T16:41:50.4039330Z outputs.package-ecosystem: npm_and_yarn
2023-11-16T16:41:50.4039937Z outputs.target-branch: main
2023-11-16T16:41:50.4040749Z outputs.previous-version: 4.5.0
2023-11-16T16:41:50.4041313Z outputs.new-version: 5.0.0
2023-11-16T16:41:50.4041875Z outputs.compatibility-score: 0
2023-11-16T16:41:50.4042447Z outputs.maintainer-changes: false
2023-11-16T16:41:50.4043016Z outputs.dependency-group: 
2023-11-16T16:41:50.4043538Z outputs.alert-state: 
2023-11-16T16:41:50.4044018Z outputs.ghsa-id: 
2023-11-16T16:41:50.4044431Z outputs.cvss: 0
2023-11-16T16:41:50.4045190Z ::endgroup::
2023-11-16T16:41:50.4045533Z ##[endgroup]
2023-11-16T16:41:50.4069493Z ##[debug]Node Action run completed with exit code 0
2023-11-16T16:41:50.4094525Z ##[debug]Set output updated-dependencies-json = [{"dependencyName":"vite","dependencyType":"direct:development","updateType":"version-update:semver-major","directory":"/","packageEcosystem":"npm_and_yarn","targetBranch":"main","prevVersion":"4.5.0","newVersion":"5.0.0","compatScore":0,"maintainerChanges":false,"dependencyGroup":"","alertState":"","ghsaId":"","cvss":0}]
2023-11-16T16:41:50.4096972Z ##[debug]Set output dependency-names = vite
2023-11-16T16:41:50.4097716Z ##[debug]Set output dependency-type = direct:development
2023-11-16T16:41:50.4098612Z ##[debug]Set output update-type = version-update:semver-major
2023-11-16T16:41:50.4099272Z ##[debug]Set output directory = /
2023-11-16T16:41:50.4099882Z ##[debug]Set output package-ecosystem = npm_and_yarn
2023-11-16T16:41:50.4100614Z ##[debug]Set output target-branch = main
2023-11-16T16:41:50.4101229Z ##[debug]Set output previous-version = 4.5.0
2023-11-16T16:41:50.4101906Z ##[debug]Set output new-version = 5.0.0
2023-11-16T16:41:50.4102489Z ##[debug]Set output compatibility-score = 0
2023-11-16T16:41:50.4103125Z ##[debug]Set output maintainer-changes = false
2023-11-16T16:41:50.4103784Z ##[debug]Set output dependency-group = 
2023-11-16T16:41:50.4104362Z ##[debug]Set output alert-state = 
2023-11-16T16:41:50.4104885Z ##[debug]Set output ghsa-id = 
2023-11-16T16:41:50.4105399Z ##[debug]Set output cvss = 0
2023-11-16T16:41:50.4109973Z ##[debug]Finished: run
2023-11-16T16:41:50.4118121Z ##[debug]Evaluating condition for step: 'run'
2023-11-16T16:41:50.4120156Z ##[debug]Evaluating: success()
2023-11-16T16:41:50.4120814Z ##[debug]Evaluating success:
2023-11-16T16:41:50.4121648Z ##[debug]=> true
2023-11-16T16:41:50.4122287Z ##[debug]Result: true
2023-11-16T16:41:50.4123188Z ##[debug]Starting: run
2023-11-16T16:41:50.4158490Z ##[debug]Loading inputs
2023-11-16T16:41:50.4159970Z ##[debug]Evaluating: inputs.github-token
2023-11-16T16:41:50.4160624Z ##[debug]Evaluating Index:
2023-11-16T16:41:50.4161107Z ##[debug]..Evaluating inputs:
2023-11-16T16:41:50.4161572Z ##[debug]..=> Object
2023-11-16T16:41:50.4162105Z ##[debug]..Evaluating String:
2023-11-16T16:41:50.4162601Z ##[debug]..=> 'github-token'
2023-11-16T16:41:50.4163415Z ##[debug]=> '***'
2023-11-16T16:41:50.4164092Z ##[debug]Result: '***'
2023-11-16T16:41:50.4166264Z ##[debug]Evaluating: format('const script = require(''{0}/dist/index.js'')
2023-11-16T16:41:50.4167081Z ##[debug]await script({{
2023-11-16T16:41:50.4167552Z ##[debug]  github,
2023-11-16T16:41:50.4167916Z ##[debug]  context,
2023-11-16T16:41:50.4168410Z ##[debug]  inputs: {1},
2023-11-16T16:41:50.4168886Z ##[debug]  dependabotMetadata: {{
2023-11-16T16:41:50.4169364Z ##[debug]    updateType:  ''{2}'',
2023-11-16T16:41:50.4169962Z ##[debug]    dependencyType:''{3}'',
2023-11-16T16:41:50.4170493Z ##[debug]    dependencyNames: ''{4}'',
2023-11-16T16:41:50.4170955Z ##[debug]  }}
2023-11-16T16:41:50.4171399Z ##[debug]}})
2023-11-16T16:41:50.4172783Z ##[debug]', github.action_path, toJSON(inputs), steps.dependabot-metadata.outputs.update-type, steps.dependabot-metadata.outputs.dependency-type, steps.dependabot-metadata.outputs.dependency-names)
2023-11-16T16:41:50.4175972Z ##[debug]Evaluating format:
2023-11-16T16:41:50.4194856Z ##[debug]..Evaluating String:
2023-11-16T16:41:50.4195572Z ##[debug]..=> 'const script = require(''{0}/dist/index.js'')
2023-11-16T16:41:50.4196311Z ##[debug]await script({{
2023-11-16T16:41:50.4196751Z ##[debug]  github,
2023-11-16T16:41:50.4197330Z ##[debug]  context,
2023-11-16T16:41:50.4197831Z ##[debug]  inputs: {1},
2023-11-16T16:41:50.4198300Z ##[debug]  dependabotMetadata: {{
2023-11-16T16:41:50.4198786Z ##[debug]    updateType:  ''{2}'',
2023-11-16T16:41:50.4199374Z ##[debug]    dependencyType:''{3}'',
2023-11-16T16:41:50.4199904Z ##[debug]    dependencyNames: ''{4}'',
2023-11-16T16:41:50.4200368Z ##[debug]  }}
2023-11-16T16:41:50.4200831Z ##[debug]}})
2023-11-16T16:41:50.4201197Z ##[debug]'
2023-11-16T16:41:50.4228754Z ##[debug]..Evaluating Index:
2023-11-16T16:41:50.4229460Z ##[debug]....Evaluating github:
2023-11-16T16:41:50.4229985Z ##[debug]....=> Object
2023-11-16T16:41:50.4230481Z ##[debug]....Evaluating String:
2023-11-16T16:41:50.4231071Z ##[debug]....=> 'action_path'
2023-11-16T16:41:50.4231861Z ##[debug]..=> '/home/runner/work/_actions/fastify/github-action-merge-dependabot/v3'
2023-11-16T16:41:50.4233576Z ##[debug]..Evaluating toJSON:
2023-11-16T16:41:50.4260596Z ##[debug]....Evaluating inputs:
2023-11-16T16:41:50.4261192Z ##[debug]....=> Object
2023-11-16T16:41:50.4284612Z ##[debug]..=> '{
2023-11-16T16:41:50.4285039Z ##[debug]  "target": "minor",
2023-11-16T16:41:50.4285686Z ##[debug]  "use-github-auto-merge": "true",
2023-11-16T16:41:50.4286533Z ##[debug]  "github-token": "***",
2023-11-16T16:41:50.4286988Z ##[debug]  "exclude": "",
2023-11-16T16:41:50.4287524Z ##[debug]  "approve-only": "false",
2023-11-16T16:41:50.4288038Z ##[debug]  "merge-method": "squash",
2023-11-16T16:41:50.4288520Z ##[debug]  "merge-comment": "",
2023-11-16T16:41:50.4289078Z ##[debug]  "pr-number": "",
2023-11-16T16:41:50.4411415Z ##[debug]  "skip-commit-verification": "false",
2023-11-16T16:41:50.4412001Z ##[debug]  "skip-verification": "false"
2023-11-16T16:41:50.4412405Z ##[debug]}'
2023-11-16T16:41:50.4412978Z ##[debug]..Evaluating Index:
2023-11-16T16:41:50.4413353Z ##[debug]....Evaluating Index:
2023-11-16T16:41:50.4413739Z ##[debug]......Evaluating Index:
2023-11-16T16:41:50.4414339Z ##[debug]........Evaluating steps:
2023-11-16T16:41:50.4414961Z ##[debug]........=> Object
2023-11-16T16:41:50.4415326Z ##[debug]........Evaluating String:
2023-11-16T16:41:50.4416193Z ##[debug]........=> 'dependabot-metadata'
2023-11-16T16:41:50.4416681Z ##[debug]......=> Object
2023-11-16T16:41:50.4417039Z ##[debug]......Evaluating String:
2023-11-16T16:41:50.4417415Z ##[debug]......=> 'outputs'
2023-11-16T16:41:50.4417791Z ##[debug]....=> Object
2023-11-16T16:41:50.4418148Z ##[debug]....Evaluating String:
2023-11-16T16:41:50.4418579Z ##[debug]....=> 'update-type'
2023-11-16T16:41:50.4419012Z ##[debug]..=> 'version-update:semver-major'
2023-11-16T16:41:50.4419624Z ##[debug]..Evaluating Index:
2023-11-16T16:41:50.4420029Z ##[debug]....Evaluating Index:
2023-11-16T16:41:50.4420420Z ##[debug]......Evaluating Index:
2023-11-16T16:41:50.4420809Z ##[debug]........Evaluating steps:
2023-11-16T16:41:50.4421204Z ##[debug]........=> Object
2023-11-16T16:41:50.4421606Z ##[debug]........Evaluating String:
2023-11-16T16:41:50.4422056Z ##[debug]........=> 'dependabot-metadata'
2023-11-16T16:41:50.4422482Z ##[debug]......=> Object
2023-11-16T16:41:50.4422831Z ##[debug]......Evaluating String:
2023-11-16T16:41:50.4423216Z ##[debug]......=> 'outputs'
2023-11-16T16:41:50.4423549Z ##[debug]....=> Object
2023-11-16T16:41:50.4423879Z ##[debug]....Evaluating String:
2023-11-16T16:41:50.4424258Z ##[debug]....=> 'dependency-type'
2023-11-16T16:41:50.4424669Z ##[debug]..=> 'direct:development'
2023-11-16T16:41:50.4425061Z ##[debug]..Evaluating Index:
2023-11-16T16:41:50.4425420Z ##[debug]....Evaluating Index:
2023-11-16T16:41:50.4425789Z ##[debug]......Evaluating Index:
2023-11-16T16:41:50.4426184Z ##[debug]........Evaluating steps:
2023-11-16T16:41:50.4426564Z ##[debug]........=> Object
2023-11-16T16:41:50.4426925Z ##[debug]........Evaluating String:
2023-11-16T16:41:50.4427343Z ##[debug]........=> 'dependabot-metadata'
2023-11-16T16:41:50.4427768Z ##[debug]......=> Object
2023-11-16T16:41:50.4428108Z ##[debug]......Evaluating String:
2023-11-16T16:41:50.4428472Z ##[debug]......=> 'outputs'
2023-11-16T16:41:50.4428949Z ##[debug]....=> Object
2023-11-16T16:41:50.4429280Z ##[debug]....Evaluating String:
2023-11-16T16:41:50.4429663Z ##[debug]....=> 'dependency-names'
2023-11-16T16:41:50.4430050Z ##[debug]..=> 'vite'
2023-11-16T16:41:50.4431057Z ##[debug]=> 'const script = require(''/home/runner/work/_actions/fastify/github-action-merge-dependabot/v3/dist/index.js'')
2023-11-16T16:41:50.4431911Z ##[debug]await script({
2023-11-16T16:41:50.4432228Z ##[debug]  github,
2023-11-16T16:41:50.4432505Z ##[debug]  context,
2023-11-16T16:41:50.4432792Z ##[debug]  inputs: {
2023-11-16T16:41:50.4433095Z ##[debug]  "target": "minor",
2023-11-16T16:41:50.4433484Z ##[debug]  "use-github-auto-merge": "true",
2023-11-16T16:41:50.4434187Z ##[debug]  "github-token": "***",
2023-11-16T16:41:50.4434563Z ##[debug]  "exclude": "",
2023-11-16T16:41:50.4434904Z ##[debug]  "approve-only": "false",
2023-11-16T16:41:50.4435310Z ##[debug]  "merge-method": "squash",
2023-11-16T16:41:50.4435714Z ##[debug]  "merge-comment": "",
2023-11-16T16:41:50.4436085Z ##[debug]  "pr-number": "",
2023-11-16T16:41:50.4436500Z ##[debug]  "skip-commit-verification": "false",
2023-11-16T16:41:50.4436976Z ##[debug]  "skip-verification": "false"
2023-11-16T16:41:50.4437356Z ##[debug]},
2023-11-16T16:41:50.4437642Z ##[debug]  dependabotMetadata: {
2023-11-16T16:41:50.4438122Z ##[debug]    updateType:  ''version-update:semver-major'',
2023-11-16T16:41:50.4438683Z ##[debug]    dependencyType:''direct:development'',
2023-11-16T16:41:50.4439167Z ##[debug]    dependencyNames: ''vite'',
2023-11-16T16:41:50.4439554Z ##[debug]  }
2023-11-16T16:41:50.4439798Z ##[debug]})
2023-11-16T16:41:50.4440042Z ##[debug]'
2023-11-16T16:41:50.4440903Z ##[debug]Result: 'const script = require(''/home/runner/work/_actions/fastify/github-action-merge-dependabot/v3/dist/index.js'')
2023-11-16T16:41:50.4441788Z ##[debug]await script({
2023-11-16T16:41:50.4442092Z ##[debug]  github,
2023-11-16T16:41:50.4442372Z ##[debug]  context,
2023-11-16T16:41:50.4442664Z ##[debug]  inputs: {
2023-11-16T16:41:50.4442966Z ##[debug]  "target": "minor",
2023-11-16T16:41:50.4443496Z ##[debug]  "use-github-auto-merge": "true",
2023-11-16T16:41:50.4444161Z ##[debug]  "github-token": "***",
2023-11-16T16:41:50.4444541Z ##[debug]  "exclude": "",
2023-11-16T16:41:50.4444876Z ##[debug]  "approve-only": "false",
2023-11-16T16:41:50.4445277Z ##[debug]  "merge-method": "squash",
2023-11-16T16:41:50.4445679Z ##[debug]  "merge-comment": "",
2023-11-16T16:41:50.4446042Z ##[debug]  "pr-number": "",
2023-11-16T16:41:50.4446459Z ##[debug]  "skip-commit-verification": "false",
2023-11-16T16:41:50.4446927Z ##[debug]  "skip-verification": "false"
2023-11-16T16:41:50.4447299Z ##[debug]},
2023-11-16T16:41:50.4447581Z ##[debug]  dependabotMetadata: {
2023-11-16T16:41:50.4448059Z ##[debug]    updateType:  ''version-update:semver-major'',
2023-11-16T16:41:50.4448611Z ##[debug]    dependencyType:''direct:development'',
2023-11-16T16:41:50.4449101Z ##[debug]    dependencyNames: ''vite'',
2023-11-16T16:41:50.4449491Z ##[debug]  }
2023-11-16T16:41:50.4449745Z ##[debug]})
2023-11-16T16:41:50.4449991Z ##[debug]'
2023-11-16T16:41:50.4451361Z ##[debug]Evaluating: (runner.debug == '1')
2023-11-16T16:41:50.4451840Z ##[debug]Evaluating Equal:
2023-11-16T16:41:50.4452204Z ##[debug]..Evaluating Index:
2023-11-16T16:41:50.4452594Z ##[debug]....Evaluating runner:
2023-11-16T16:41:50.4452984Z ##[debug]....=> Object
2023-11-16T16:41:50.4453330Z ##[debug]....Evaluating String:
2023-11-16T16:41:50.4453693Z ##[debug]....=> 'debug'
2023-11-16T16:41:50.4454300Z ##[debug]..=> '1'
2023-11-16T16:41:50.4454622Z ##[debug]..Evaluating String:
2023-11-16T16:41:50.4454977Z ##[debug]..=> '1'
2023-11-16T16:41:50.4455265Z ##[debug]=> true
2023-11-16T16:41:50.4455593Z ##[debug]Expanded: ('1' == '1')
2023-11-16T16:41:50.4455957Z ##[debug]Result: true
2023-11-16T16:41:50.4461955Z ##[debug]Loading env
2023-11-16T16:41:50.4467420Z ##[group]Run actions/github-script@v6
2023-11-16T16:41:50.4467800Z with:
2023-11-16T16:41:50.4468247Z   github-token: ***
2023-11-16T16:41:50.4471581Z   script: const script = require('/home/runner/work/_actions/fastify/github-action-merge-dependabot/v3/dist/index.js')
await script({
  github,
  context,
  inputs: {
  "target": "minor",
  "use-github-auto-merge": "true",
  "github-token": "***",
  "exclude": "",
  "approve-only": "false",
  "merge-method": "squash",
  "merge-comment": "",
  "pr-number": "",
  "skip-commit-verification": "false",
  "skip-verification": "false"
},
  dependabotMetadata: {
    updateType:  'version-update:semver-major',
    dependencyType:'direct:development',
    dependencyNames: 'vite',
  }
})

2023-11-16T16:41:50.4474548Z   debug: true
2023-11-16T16:41:50.4474855Z   user-agent: actions/github-script
2023-11-16T16:41:50.4475255Z   result-encoding: json
2023-11-16T16:41:50.4475562Z   retries: 0
2023-11-16T16:41:50.4475902Z   retry-exempt-status-codes: 400,401,403,404,422
2023-11-16T16:41:50.4476341Z ##[endgroup]
2023-11-16T16:41:50.5593449Z request {
2023-11-16T16:41:50.5594567Z   method: 'GET',
2023-11-16T16:41:50.5595101Z   baseUrl: 'https://api.github.com',
2023-11-16T16:41:50.5595518Z   headers: {
2023-11-16T16:41:50.5595941Z     accept: 'application/vnd.github.v3+json',
2023-11-16T16:41:50.5596793Z     'user-agent': 'actions/github-script octokit-core.js/3.6.0 Node.js/16.20.2 (linux; x64)'
2023-11-16T16:41:50.5597455Z   },
2023-11-16T16:41:50.5597844Z   mediaType: { format: '', previews: [] },
2023-11-16T16:41:50.5598261Z   request: {
2023-11-16T16:41:50.5598517Z     agent: Agent {
2023-11-16T16:41:50.5598855Z       _events: [Object: null prototype],
2023-11-16T16:41:50.5599269Z       _eventsCount: 2,
2023-11-16T16:41:50.5599592Z       _maxListeners: undefined,
2023-11-16T16:41:50.5599958Z       defaultPort: 443,
2023-11-16T16:41:50.5600319Z       protocol: 'https:',
2023-11-16T16:41:50.5600674Z       options: [Object: null prototype],
2023-11-16T16:41:50.5601134Z       requests: [Object: null prototype] {},
2023-11-16T16:41:50.5601619Z       sockets: [Object: null prototype] {},
2023-11-16T16:41:50.5602098Z       freeSockets: [Object: null prototype] {},
2023-11-16T16:41:50.5602554Z       keepAliveMsecs: 1000,
2023-11-16T16:41:50.5603232Z       keepAlive: false,
2023-11-16T16:41:50.5603561Z       maxSockets: Infinity,
2023-11-16T16:41:50.5603907Z       maxFreeSockets: 256,
2023-11-16T16:41:50.5604291Z       scheduling: 'lifo',
2023-11-16T16:41:50.5604627Z       maxTotalSockets: Infinity,
2023-11-16T16:41:50.5605013Z       totalSocketCount: 0,
2023-11-16T16:41:50.5605361Z       maxCachedSessions: 100,
2023-11-16T16:41:50.5605724Z       _sessionCache: [Object],
2023-11-16T16:41:50.5606095Z       [Symbol(kCapture)]: false
2023-11-16T16:41:50.5606433Z     },
2023-11-16T16:41:50.5606718Z     hook: [Function: bound bound register]
2023-11-16T16:41:50.5607118Z   },
2023-11-16T16:41:50.5607542Z   url: '/repos/{owner}/{repo}/pulls/{pull_number}/commits',
2023-11-16T16:41:50.5608071Z   owner: 'fl101',
2023-11-16T16:41:50.5608395Z   repo: 'awardfares',
2023-11-16T16:41:50.5608709Z   pull_number: 1404
2023-11-16T16:41:50.5608985Z }
2023-11-16T16:41:50.8561757Z GET /repos/fl101/awardfares/pulls/1404/commits - 200 in 295ms
2023-11-16T16:41:50.8609337Z ##[warning]Semver bump is higher than allowed in TARGET.
Tried to do a 'version-update:semver-major' update but the max allowed is 'version-update:semver-minor'
2023-11-16T16:41:50.8631277Z ##[debug]Node Action run completed with exit code 0
2023-11-16T16:41:50.8633866Z ##[debug]Set output merge_status = skipped:bump_higher_than_target
2023-11-16T16:41:50.8634447Z ##[debug]Set output result = 
2023-11-16T16:41:50.8635234Z ##[debug]Finished: run
2023-11-16T16:41:50.8656953Z ##[debug]Finishing: Auto Merge Dependabot PR
2023-11-16T16:41:50.8666780Z ##[debug]Evaluating condition for step: 'Run echo ${{ steps.auto_merge.outputs.merge_status }}'
2023-11-16T16:41:50.8670248Z ##[debug]Evaluating: format('echo {0}', steps.auto_merge.outputs.merge_status)
2023-11-16T16:41:50.8670964Z ##[debug]Evaluating format:
2023-11-16T16:41:50.8671327Z ##[debug]..Evaluating String:
2023-11-16T16:41:50.8671920Z ##[debug]..=> 'echo {0}'
2023-11-16T16:41:50.8672336Z ##[debug]..Evaluating Index:
2023-11-16T16:41:50.8672698Z ##[debug]....Evaluating Index:
2023-11-16T16:41:50.8673058Z ##[debug]......Evaluating Index:
2023-11-16T16:41:50.8673444Z ##[debug]........Evaluating steps:
2023-11-16T16:41:50.8673842Z ##[debug]........=> Object
2023-11-16T16:41:50.8674219Z ##[debug]........Evaluating String:
2023-11-16T16:41:50.8674604Z ##[debug]........=> 'auto_merge'
2023-11-16T16:41:50.8674998Z ##[debug]......=> Object
2023-11-16T16:41:50.8675342Z ##[debug]......Evaluating String:
2023-11-16T16:41:50.8675717Z ##[debug]......=> 'outputs'
2023-11-16T16:41:50.8676098Z ##[debug]....=> Object
2023-11-16T16:41:50.8676419Z ##[debug]....Evaluating String:
2023-11-16T16:41:50.8676795Z ##[debug]....=> 'merge_status'
2023-11-16T16:41:50.8677149Z ##[debug]..=> null
2023-11-16T16:41:50.8677465Z ##[debug]=> 'echo '
2023-11-16T16:41:50.8677785Z ##[debug]Result: 'echo '
2023-11-16T16:41:50.8678415Z ##[debug]Set step '__run' display name to: 'Run echo '
2023-11-16T16:41:50.8681289Z ##[debug]Evaluating: success()
2023-11-16T16:41:50.8681821Z ##[debug]Evaluating success:
2023-11-16T16:41:50.8682322Z ##[debug]=> true
2023-11-16T16:41:50.8682788Z ##[debug]Result: true
2023-11-16T16:41:50.8683441Z ##[debug]Starting: Run echo 
2023-11-16T16:41:50.8697201Z ##[debug]Loading inputs
2023-11-16T16:41:50.8698710Z ##[debug]Evaluating: format('echo {0}', steps.auto_merge.outputs.merge_status)
2023-11-16T16:41:50.8699336Z ##[debug]Evaluating format:
2023-11-16T16:41:50.8699904Z ##[debug]..Evaluating String:
2023-11-16T16:41:50.8700273Z ##[debug]..=> 'echo {0}'
2023-11-16T16:41:50.8700683Z ##[debug]..Evaluating Index:
2023-11-16T16:41:50.8701045Z ##[debug]....Evaluating Index:
2023-11-16T16:41:50.8701409Z ##[debug]......Evaluating Index:
2023-11-16T16:41:50.8701791Z ##[debug]........Evaluating steps:
2023-11-16T16:41:50.8702189Z ##[debug]........=> Object
2023-11-16T16:41:50.8702560Z ##[debug]........Evaluating String:
2023-11-16T16:41:50.8702962Z ##[debug]........=> 'auto_merge'
2023-11-16T16:41:50.8703344Z ##[debug]......=> Object
2023-11-16T16:41:50.8703683Z ##[debug]......Evaluating String:
2023-11-16T16:41:50.8704058Z ##[debug]......=> 'outputs'
2023-11-16T16:41:50.8704392Z ##[debug]....=> Object
2023-11-16T16:41:50.8704722Z ##[debug]....Evaluating String:
2023-11-16T16:41:50.8705110Z ##[debug]....=> 'merge_status'
2023-11-16T16:41:50.8705454Z ##[debug]..=> null
2023-11-16T16:41:50.8705769Z ##[debug]=> 'echo '
2023-11-16T16:41:50.8706084Z ##[debug]Result: 'echo '
2023-11-16T16:41:50.8706510Z ##[debug]Loading env
2023-11-16T16:41:50.8753047Z ##[group]Run echo 
2023-11-16T16:41:50.8753432Z �[36;1mecho �[0m
2023-11-16T16:41:50.8808117Z shell: /usr/bin/bash -e {0}
2023-11-16T16:41:50.8808514Z ##[endgroup]
2023-11-16T16:41:50.8935702Z ##[debug]/usr/bin/bash -e /home/runner/work/_temp/f2714343-a121-4096-9246-810e5e49607f.sh
2023-11-16T16:41:50.8957637Z 
2023-11-16T16:41:50.8967499Z ##[debug]Finishing: Run echo 
2023-11-16T16:41:50.8976069Z ##[debug]Evaluating condition for step: 'Post Run actions/checkout@v4'
2023-11-16T16:41:50.8978367Z ##[debug]Evaluating: always()
2023-11-16T16:41:50.8978863Z ##[debug]Evaluating always:
2023-11-16T16:41:50.8979839Z ##[debug]=> true
2023-11-16T16:41:50.8980395Z ##[debug]Result: true
2023-11-16T16:41:50.8981102Z ##[debug]Starting: Post Run actions/checkout@v4
2023-11-16T16:41:50.9020502Z ##[debug]Loading inputs
2023-11-16T16:41:50.9021829Z ##[debug]Evaluating: github.repository
2023-11-16T16:41:50.9022270Z ##[debug]Evaluating Index:
2023-11-16T16:41:50.9022622Z ##[debug]..Evaluating github:
2023-11-16T16:41:50.9022997Z ##[debug]..=> Object
2023-11-16T16:41:50.9023327Z ##[debug]..Evaluating String:
2023-11-16T16:41:50.9023683Z ##[debug]..=> 'repository'
2023-11-16T16:41:50.9024060Z ##[debug]=> 'fl101/awardfares'
2023-11-16T16:41:50.9024438Z ##[debug]Result: 'fl101/awardfares'
2023-11-16T16:41:50.9026223Z ##[debug]Evaluating: github.token
2023-11-16T16:41:50.9026658Z ##[debug]Evaluating Index:
2023-11-16T16:41:50.9027144Z ##[debug]..Evaluating github:
2023-11-16T16:41:50.9027499Z ##[debug]..=> Object
2023-11-16T16:41:50.9027823Z ##[debug]..Evaluating String:
2023-11-16T16:41:50.9028161Z ##[debug]..=> 'token'
2023-11-16T16:41:50.9028676Z ##[debug]=> '***'
2023-11-16T16:41:50.9029168Z ##[debug]Result: '***'
2023-11-16T16:41:50.9039748Z ##[debug]Loading env
2023-11-16T16:41:50.9044931Z Post job cleanup.

Steps to Reproduce

Given the following Github Actions definition:

name: Dependabot Auto Merge

on:
  pull_request:

jobs:
  auto_merge:
    name: Auto Merge
    permissions:
      contents: write
      pull-requests: write
    if: startsWith(github.head_ref, 'dependabot/')
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: fastify/github-action-merge-dependabot@v3
        id: auto_merge
        name: Auto Merge Dependabot PR if possible
        with:
          target: minor
          use-github-auto-merge: true
      - run: echo ${{ steps.auto_merge.outputs.merge_status }}

Expected Behavior

I would expect steps.auto_merge.outputs.merge_status to have the merge status, but it's empty.

@richardsimko
Copy link
Author

In case someone stumbles across this because they have the same use case as me where they want to auto merge some PRs and assign a reviewer to others a better approach is to simply use GH Actions built in functionality for this instead of using this action. It's possible to extract the metadata and then simply assign the PR based on the status of that job. Here's some official docs from GH on how to do it: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request

@simoneb simoneb self-assigned this Feb 7, 2024
simoneb pushed a commit that referenced this issue Feb 8, 2024
* Fixes dependabot/output-doesnot-seem-to-appear#539

* #539 adding random merge status key to verify

* #539 adding random merge status keys

* #539 removed log messages. Added workflow id to workflow

* #539 added workflow id to action yaml

* #539 removed unneeded changes in action yaml file

* fix #539 added new merge status for auto merge
PhanindraNeralla added a commit to PhanindraNeralla/github-action-merge-dependabot that referenced this issue Feb 8, 2024
simoneb pushed a commit that referenced this issue Feb 8, 2024
simoneb added a commit that referenced this issue Feb 9, 2024
* fix: merge status output not working

* Dependabot/output doesnot seem to appear#539 (#574)

* Fixes dependabot/output-doesnot-seem-to-appear#539

* #539 adding random merge status key to verify

* #539 adding random merge status keys

* #539 removed log messages. Added workflow id to workflow

* #539 added workflow id to action yaml

* #539 removed unneeded changes in action yaml file

* fix #539 added new merge status for auto merge

* #539 added testcase for auto merge (#576)

* chore: rename main to approver in workflow

---------

Co-authored-by: Phanindra Neralla <158252118+PhanindraNeralla@users.noreply.github.com>
Copy link

github-actions bot commented Feb 9, 2024

🎉 This issue has been resolved in version 3.10.1 🎉

The release is available on:

Your optic bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants