Source git Automation #312
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: Source git Automation | |
on: | |
workflow_run: | |
workflows: [ Gather Pull Request Metadata ] | |
types: | |
- completed | |
permissions: | |
contents: read | |
jobs: | |
download-metadata: | |
if: > | |
github.event.workflow_run.event == 'pull_request' && | |
github.event.workflow_run.conclusion == 'success' && | |
github.repository == 'redhat-plumbers/systemd-rhel9' | |
runs-on: ubuntu-latest | |
outputs: | |
pr-metadata: ${{ steps.Artifact.outputs.pr-metadata-json }} | |
steps: | |
- id: Artifact | |
name: Download Artifact | |
uses: redhat-plumbers-in-action/download-artifact@v1 | |
with: | |
name: pr-metadata | |
source-git-automation: | |
needs: [ download-metadata ] | |
runs-on: ubuntu-latest | |
permissions: | |
# required for merging PRs | |
contents: write | |
# required for PR comments and setting labels | |
pull-requests: write | |
steps: | |
- name: Source-git Automation | |
uses: redhat-plumbers-in-action/source-git-automation@v1 | |
with: | |
pr-metadata: ${{ needs.download-metadata.outputs.pr-metadata }} | |
bugzilla-api-token: ${{ secrets.BUGZILLA_API_TOKEN }} | |
jira-api-token: ${{ secrets.JIRA_API_TOKEN }} | |
token: ${{ secrets.GITHUB_TOKEN }} |