.github/workflows: Shorten the URLs from github

This commit is contained in:
Enno Boland 2019-12-20 13:41:59 +01:00 committed by Enno Boland
parent 3343124a4b
commit 31d28c0a2e
3 changed files with 23 additions and 3 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}