WIP: try gitbackup #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test-slack-notification | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| slack-channel-id: | |
| description: 'Slack channel id' | |
| required: true | |
| type: string | |
| pull_request: | |
| jobs: | |
| test-slack: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Force failure to test notification | |
| run: exit 1 | |
| - name: Notify Slack on failure | |
| uses: code16/.github/.github/actions/slack-notify-failure@main | |
| if: failure() | |
| with: | |
| slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | |
| slack-channel-id: ${{ inputs.slack-channel-id || secrets.SLACK_CHANNEL_ID }} |