Skip to content

wip - composite action #5

wip - composite action

wip - composite action #5

name: Jacob's actions experiments
on:
push:
branches:
- jacobs-actions-experiments
workflow_dispatch:
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
test-job-always-fails:
runs-on: ubuntu-latest
steps:
- name: Always fail
run: exit 1
- name: Notify errors in slack
if: failure()
uses: ./.github/actions/slack-error-notification
# - name: Slack notification
# if: failure()
# # confirm:
# uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
# # confirm:
# with:
# payload: |
# {
# "text": "${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head.html_url }}",
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "Happy Holidays! Jacob's always fails test result: ${{ job.status }}\nhttps://github.com/fleetdm/fleet/actions/runs/${{ github.run_id }}\n${{ github.event.pull_request.html_url || github.event.head.html_url }}"
# }
# }
# ]
# }
# env:
# # confirm:
# JOB_STATUS: ${{ job.status }}
# # confirm:
# EVENT_URL: ${{ github.event.pull_request.html_url || github.event.head.html_url }}
# # confirm:
# RUN_URL: https://github.com/fleetdm/fleet/actions/runs/${{ github.run_id }}\n${{ github.event.pull_request.html_url || github.event.head.html_url }}
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_G_HELP_ENGINEERING_WEBHOOK_URL }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK