.github/workflows: Shorten the URLs from github
This commit is contained in:
parent
3343124a4b
commit
31d28c0a2e
9
.github/workflows/notify-issue.yaml
vendored
9
.github/workflows/notify-issue.yaml
vendored
|
@ -8,6 +8,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 3
|
||||
steps:
|
||||
- name: Shorten URL
|
||||
id: shortener
|
||||
if: github.repository == 'void-linux/void-packages'
|
||||
uses: Gottox/url-shortener-action@master
|
||||
with:
|
||||
url: "${{ github.event.issue.html_url }}"
|
||||
- name: "Issue Notification"
|
||||
uses: Gottox/irc-message-action@master
|
||||
if: github.repository == 'void-linux/void-packages'
|
||||
|
@ -20,5 +26,6 @@ jobs:
|
|||
message: >-
|
||||
${{ github.actor }}
|
||||
${{ github.event.action }} issue
|
||||
#${{ github.event.issue.number }}
|
||||
“${{ github.event.issue.title }}”
|
||||
${{ github.event.issue.html_url }}
|
||||
${{ steps.shortener.outputs.short_url }}
|
||||
|
|
9
.github/workflows/notify-pr.yaml
vendored
9
.github/workflows/notify-pr.yaml
vendored
|
@ -8,6 +8,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 3
|
||||
steps:
|
||||
- name: Shorten URL
|
||||
id: shortener
|
||||
if: github.repository == 'void-linux/void-packages'
|
||||
uses: Gottox/url-shortener-action@master
|
||||
with:
|
||||
url: "${{ github.event.pull_request.html_url }}"
|
||||
- name: "Pull Request Notification"
|
||||
uses: Gottox/irc-message-action@master
|
||||
if: github.repository == 'void-linux/void-packages'
|
||||
|
@ -20,5 +26,6 @@ jobs:
|
|||
message: >-
|
||||
${{ github.actor }}
|
||||
${{ github.event.action }} pull request
|
||||
#${{ github.event.pull_request.number }}
|
||||
“${{ github.event.pull_request.title }}”
|
||||
${{ github.event.pull_request.html_url }}
|
||||
${{ steps.shortener.outputs.short_url }}
|
||||
|
|
8
.github/workflows/notify-push.yaml
vendored
8
.github/workflows/notify-push.yaml
vendored
|
@ -8,6 +8,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 3
|
||||
steps:
|
||||
- name: Shorten URL
|
||||
id: shortener
|
||||
if: github.repository == 'void-linux/void-packages'
|
||||
uses: Gottox/url-shortener-action@master
|
||||
with:
|
||||
url: "${{ github.event.compare }}"
|
||||
- name: "Push Notification"
|
||||
uses: Gottox/irc-message-action@master
|
||||
if: github.repository == 'void-linux/void-packages'
|
||||
|
@ -20,4 +26,4 @@ jobs:
|
|||
message: >-
|
||||
${{ github.actor }}
|
||||
pushed
|
||||
${{ github.event.compare }}"
|
||||
${{ steps.shortener.outputs.short_url }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user