Update test.yml
This commit is contained in:
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@@ -6,9 +6,9 @@ on:
|
|||||||
description: 'Run debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
|
description: 'Run debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
# push:
|
push:
|
||||||
# branches:
|
branches:
|
||||||
# - master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
test_netdisco:
|
test_netdisco:
|
||||||
name: Test Netdisco Job
|
name: Test Netdisco Job
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Get the Tag
|
- name: Get the Tag
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/}
|
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/heads/}
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: apk add openssh xz tmux bash curl sudo gcc make
|
run: apk add openssh xz tmux bash curl sudo gcc make
|
||||||
- name: Install fake apt-get
|
- name: Install fake apt-get
|
||||||
@@ -51,8 +51,9 @@ jobs:
|
|||||||
channel: '#netdisco'
|
channel: '#netdisco'
|
||||||
nickname: github-actions
|
nickname: github-actions
|
||||||
message: |-
|
message: |-
|
||||||
${{ github.actor }} pushed ${{ github.sha }} to ${{ steps.get_tag.outputs.TAGVALUE }} on ${{ github.repository }}
|
${{ github.actor }} pushed ${{ github.sha }} to ${{ steps.get_tag.outputs.TAGVALUE }} on repo:${{ github.repository }}
|
||||||
but the TESTS FAILED! 😭
|
but the TESTS FAILED! 😭 https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
https://github.com/netdisco/netdisco/commit/${{ github.sha }}
|
||||||
- name: IRC success notification
|
- name: IRC success notification
|
||||||
uses: Gottox/irc-message-action@v2
|
uses: Gottox/irc-message-action@v2
|
||||||
if: ${{ always() && success() }}
|
if: ${{ always() && success() }}
|
||||||
@@ -60,5 +61,6 @@ jobs:
|
|||||||
channel: '#netdisco'
|
channel: '#netdisco'
|
||||||
nickname: github-actions
|
nickname: github-actions
|
||||||
message: |-
|
message: |-
|
||||||
${{ github.actor }} pushed ${{ github.sha }} to ${{ steps.get_tag.outputs.TAGVALUE }} on ${{ github.repository }}
|
${{ github.actor }} pushed ${{ github.sha }} to ${{ steps.get_tag.outputs.TAGVALUE }} on repo:${{ github.repository }}
|
||||||
and the TESTS PASSED! 🎉
|
and the TESTS PASSED! 🎉 https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
https://github.com/netdisco/netdisco/commit/${{ github.sha }}
|
||||||
|
|||||||
Reference in New Issue
Block a user