Nightly Acceptance #1364
This file contains 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: Nightly Acceptance | |
on: | |
schedule: | |
- cron: '0 5 * * *' # UTC | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.20' | |
- run: make test | |
env: | |
PACKER_ACC: ${{ secrets.PACKER_ACC }} | |
VULTR_API_KEY: ${{ secrets.VULTR_API_KEY }} | |
notify: | |
name: MatterMost Notifcation | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- run: | | |
echo "{\"text\":\"Packer Nightly Acceptance Job Status: ${{ needs.build.result }} \"}" > mattermost.json | |
- uses: mattermost/action-mattermost-notify@master | |
env: | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | |
MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}} | |
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }} |