Enhance http error responses #15
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
name: Cross-repo Issue Creation | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- "master" | |
jobs: | |
cross-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.XREPO_APP_ID }} | |
private_key: ${{ secrets.XREPO_PEM }} | |
- name: create issue in other repo | |
if: "!contains(github.event.pull_request.labels.*.name, 'do not port') && github.event.pull_request.merged" | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
run: | | |
echo -e "A PR was merged over on PBC-Java\n\n- [https://github.com/prebid/prebid-cache-java/pull/${{github.event.number}}](https://github.com/prebid/prebid-cache-java/pull/${{github.event.number}})\n- timestamp: ${{ github.event.pull_request.merged_at}}" > msg | |
export msg=$(cat msg) | |
gh issue create --repo prebid/prebid-cache --title "Port PR from PBC-Java: ${{ github.event.pull_request.title }}" \ | |
--body "$msg" \ | |
--label auto |