Skip to content

Run Build

Run Build #118

Workflow file for this run

name: Run Build
on:
schedule:
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
- cron: "0 0 * * 1"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Run
id: run_hamcall
run: go run main.go -dl -m=b2
env:
B2_KEYID: ${{ secrets.B2_KEYID }}
B2_APPKEY: ${{ secrets.B2_APPKEY }}
GEO_URL: ${{ secrets.GEO_URL }}
- name: Send workflow notification
run: |
curl -X POST --data-urlencode "payload={\"username\": \"Github Actions\", \"icon_url\": \"https://camo.githubusercontent.com/eeb25c8fe7d597494949032a0a1b2e79830bd8c69d5cc495efdb62fac04007c0/68747470733a2f2f63646e2e73766172756e2e6465762f67682f616374696f6e732e706e67\", \"attachments\": [{\"author_name\": \"hamcall.dev\", \"title\": \"build result: ${{ job.status }}\", \"title_link\": \"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\", \"text\": \"Updated ${{steps.run_hamcall.outputs.updated-records}} records in ${{steps.run_hamcall.outputs.run-time}}\"}]}" ${{ secrets.DISCORD_WEBHOOK }}