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

Add more outputs to open-backport-pull-request #45

Merged
merged 1 commit into from
Aug 24, 2021
Merged

Conversation

yuya-takeyama
Copy link
Contributor

This is useful when sending a notification based on the result of the action.
Slack notification example:

    steps:
      - id: backport
        name: Open Backport Pull Request
        uses: quipper/monorepo-deploy-actions/open-backport-pull-request@v1
        with:
          base-branch: ${{ env.BACKPORT_BASE_BRANCH }}
      - name: Notify to Slack
        if: ${{ startsWith(steps.open-pull-request.outputs.pull-request-url, 'https://') }}
        uses: Ilshidur/action-slack@2.1.0
        env:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
        with:
          args: |
            Backport ${{ steps.backport.outputs.head-branch }} into ${{ steps.backport.outputs.base-branch }}:
            ${{ steps.backport.outputs.pull-request-url }}

@yuya-takeyama yuya-takeyama requested review from a team and chaspy and removed request for a team August 24, 2021 00:07
Copy link

@chaspy chaspy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@chaspy chaspy merged commit f36ee65 into main Aug 24, 2021
@chaspy chaspy deleted the add-more-outputs branch August 24, 2021 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants