aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorEnno Boland <gottox@voidlinux.org>2019-12-20 12:41:59 +0000
committerEnno Boland <g@s01.de>2019-12-20 12:44:48 +0000
commit31d28c0a2e821f13293f128064751c7c6e1e937b (patch)
treea7367fb01d096d3fc72a35ab8cbd1d48b4540849 /.github/workflows
parent3343124a4b67fa023d06dc8c5a1eaf0f4e9f4403 (diff)
downloadvoid-packages-31d28c0a2e821f13293f128064751c7c6e1e937b.tar
void-packages-31d28c0a2e821f13293f128064751c7c6e1e937b.tar.gz
void-packages-31d28c0a2e821f13293f128064751c7c6e1e937b.tar.bz2
void-packages-31d28c0a2e821f13293f128064751c7c6e1e937b.tar.lz
void-packages-31d28c0a2e821f13293f128064751c7c6e1e937b.tar.xz
void-packages-31d28c0a2e821f13293f128064751c7c6e1e937b.tar.zst
void-packages-31d28c0a2e821f13293f128064751c7c6e1e937b.zip
.github/workflows: Shorten the URLs from github
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/notify-issue.yaml9
-rw-r--r--.github/workflows/notify-pr.yaml9
-rw-r--r--.github/workflows/notify-push.yaml8
3 files changed, 23 insertions, 3 deletions
diff --git a/.github/workflows/notify-issue.yaml b/.github/workflows/notify-issue.yaml
index b7f999d47bc..d218f59b158 100644
--- a/.github/workflows/notify-issue.yaml
+++ b/.github/workflows/notify-issue.yaml
@@ -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 }}
diff --git a/.github/workflows/notify-pr.yaml b/.github/workflows/notify-pr.yaml
index acbccc85f7e..edc1386afc5 100644
--- a/.github/workflows/notify-pr.yaml
+++ b/.github/workflows/notify-pr.yaml
@@ -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 }}
diff --git a/.github/workflows/notify-push.yaml b/.github/workflows/notify-push.yaml
index 9be0d2a87df..a28520e017f 100644
--- a/.github/workflows/notify-push.yaml
+++ b/.github/workflows/notify-push.yaml
@@ -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 }}