Skip to content

Emmyoop patch 5

Emmyoop patch 5 #40

Workflow file for this run

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 }}