.github/workflows: Shorten the URLs from github
This commit is contained in:
parent
3343124a4b
commit
31d28c0a2e
3 changed files with 23 additions and 3 deletions
9
.github/workflows/notify-issue.yaml
vendored
9
.github/workflows/notify-issue.yaml
vendored
|
@ -8,6 +8,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
steps:
|
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"
|
- name: "Issue Notification"
|
||||||
uses: Gottox/irc-message-action@master
|
uses: Gottox/irc-message-action@master
|
||||||
if: github.repository == 'void-linux/void-packages'
|
if: github.repository == 'void-linux/void-packages'
|
||||||
|
@ -20,5 +26,6 @@ jobs:
|
||||||
message: >-
|
message: >-
|
||||||
${{ github.actor }}
|
${{ github.actor }}
|
||||||
${{ github.event.action }} issue
|
${{ github.event.action }} issue
|
||||||
|
#${{ github.event.issue.number }}
|
||||||
“${{ github.event.issue.title }}”
|
“${{ 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
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
steps:
|
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"
|
- name: "Pull Request Notification"
|
||||||
uses: Gottox/irc-message-action@master
|
uses: Gottox/irc-message-action@master
|
||||||
if: github.repository == 'void-linux/void-packages'
|
if: github.repository == 'void-linux/void-packages'
|
||||||
|
@ -20,5 +26,6 @@ jobs:
|
||||||
message: >-
|
message: >-
|
||||||
${{ github.actor }}
|
${{ github.actor }}
|
||||||
${{ github.event.action }} pull request
|
${{ github.event.action }} pull request
|
||||||
|
#${{ github.event.pull_request.number }}
|
||||||
“${{ github.event.pull_request.title }}”
|
“${{ 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
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
steps:
|
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"
|
- name: "Push Notification"
|
||||||
uses: Gottox/irc-message-action@master
|
uses: Gottox/irc-message-action@master
|
||||||
if: github.repository == 'void-linux/void-packages'
|
if: github.repository == 'void-linux/void-packages'
|
||||||
|
@ -20,4 +26,4 @@ jobs:
|
||||||
message: >-
|
message: >-
|
||||||
${{ github.actor }}
|
${{ github.actor }}
|
||||||
pushed
|
pushed
|
||||||
${{ github.event.compare }}"
|
${{ steps.shortener.outputs.short_url }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue