Bump actions/checkout from 3 to 4 #190
Workflow file for this run
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
# **what?** | |
# When bots create a PR, this action will add a corresponding changie yaml file to that | |
# PR when a specific label is added. dbt-docs changes *always* fall under the Docs kind. | |
# | |
# The file is created off a template: | |
# | |
# kind: Docs | |
# body: <PR title> | |
# time: <current timestamp> | |
# custom: | |
# Author: <PR User Login (generally the bot)> | |
# Issue: 299 | |
# PR: <PR number> | |
# | |
# **why?** | |
# Automate changelog generation for more visability with automated bot PRs. | |
# | |
# **when?** | |
# Once a PR is created, label should be added to PR before or after creation. You can also | |
# manually trigger this by adding the appropriate label at any time. | |
# | |
# **how to add another bot?** | |
# Add the label to the included matrix. That's it! | |
# | |
name: Bot Changelog | |
on: | |
pull_request: | |
# catch when the PR is opened with the label or when the label is added | |
types: [opened, labeled] | |
permissions: | |
contents: write | |
pull-requests: read | |
jobs: | |
generate_changelog: | |
strategy: | |
matrix: | |
label: ["dependencies", "snyk"] | |
changie_kind: ["Docs"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create and commit changelog on bot PR | |
if: "contains(github.event.pull_request.labels.*.name, ${{ matrix.label }})" | |
id: bot_changelog | |
uses: emmyoop/changie_bot@v1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} | |
commit_author_name: "Github Build Bot" | |
commit_author_email: "<[email protected]>" | |
commit_message: "Add automated changelog yaml from template for bot PR" | |
changie_kind: ${{ matrix.changie_kind }} | |
label: ${{ matrix.label }} | |
custom_changelog_string: "custom:\n Author: ${{ github.event.pull_request.user.login }}\n Issue: 299\n PR: ${{ github.event.pull_request.number }}\n" |