mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
26 lines
1.1 KiB
YAML
26 lines
1.1 KiB
YAML
name: "Announce PR on Discord for review"
|
|
run-name: 'Announce PR #${{ github.event.pull_request.number }} on Discord for review'
|
|
|
|
on:
|
|
pull_request:
|
|
types: [ labeled ]
|
|
|
|
jobs:
|
|
Announce:
|
|
permissions:
|
|
pull-requests: read
|
|
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository == 'armbian/build' && github.event.label.id == '6210849975' }}
|
|
steps:
|
|
- name: Get repo
|
|
uses: actions/checkout@v5
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Discord webhook
|
|
run: |
|
|
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST --data \
|
|
"{\"username\": \"Github\", \"avatar_url\": \"${{ secrets.AVATARURL }}\", \"content\": \"\
|
|
:arrow_heading_up: **Pull request** to [$GITHUB_REPOSITORY](<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY>) by [$GITHUB_ACTOR](<$GITHUB_SERVER_URL/$GITHUB_ACTOR>) - **Please review!** \
|
|
:point_right: [Link](<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pull/${{github.event.pull_request.number}}>): *$(git show -s --format=%s)*\"}" ${{ secrets.WEBHOOKURL }}
|