Emmyoop patch 5 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Open issues in another repo when a PR is labeled | |
on: | |
pull_request: | |
types: [closed, labeled] | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
issues: write # opens new issues | |
pull-requests: write # comments on PRs | |
jobs: | |
generate_body: | |
if: contains( github.event.pull_request.labels.*.name, 'needs-docs') && github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
outputs: | |
first_line: ${{ steps.set_body.outputs.first_line }} | |
second_line: ${{ steps.set_body.outputs.second_line }} | |
third_line: ${{ steps.set_body.outputs.third_line }} | |
steps: | |
- name: Get issue title | |
id: set_body | |
run: | | |
echo "first_line=Link to the page on docs.getdbt.com requiring updates" >> $GITHUB_ENV | |
echo "second_line=What part(s) of the page would you like to see updated?" >> $GITHUB_ENV | |
echo "third_line=Additional information" >> $GITHUB_ENV | |
open_issues: | |
needs: [generate_body] | |
uses: dbt-labs/actions/.github/workflows/open-issue-in-repo.yml@er/docs-issue | |
with: | |
issue_repository: "emmyoop/action_testing" | |
issue_title: "This is my title" | |
issue_body: "This is the issue body\n\nIt can have multiple lines\n\n### And even markdown!" | |
labels: "needs-docs,bug" | |
secrets: | |
FISHTOWN_BOT_PAT: ${{ secrets.FISHTOWN_BOT_PAT }} |