-
-
Notifications
You must be signed in to change notification settings - Fork 40
Provide merge outcome as output #323
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
It would be great if the action execution outcome, i.e whether a PR was merged, is provided as an output.
Something along the lines of:
mergeResult - One of skipped, not_a_dependabot_pr,merge_failed, merged etc.
Motivation
Allows for running steps / jobs conditionally only if a PR was auto-merged.
Example
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- id: automerge
name: automerge
uses: "fastify/github-action-merge-dependabot@v3.0.0"
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Invoke workflow
if: steps.automerge.outputs.mergeResult == 'merged'
....Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers