appvm/.github/workflows/donate.yml

26 lines
830 B
YAML
Raw Normal View History

2020-01-16 23:50:39 +00:00
name: donate
on:
issues:
types: [opened, closed]
schedule:
2020-01-20 09:22:40 +00:00
- cron: '35 * * * *' # for updating balance
2020-01-16 23:50:39 +00:00
jobs:
comment:
runs-on: ubuntu-latest
steps:
- env:
2020-01-20 09:22:40 +00:00
# https://github.com/jollheef/donate/blob/master/dashboard/whitelist.go
DASHBOARD_ACCESS_TOKEN: ${{ secrets.DONATE_DASHBOARD_ACCESS_TOKEN }}
# the scope is current repository only
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-01-16 23:50:39 +00:00
TOOL: "https://github.com/jollheef/donate/archive/master.tar.gz"
run: |
2020-06-18 15:27:16 +00:00
curl -L https://nixos.org/nix/install | sh
2020-01-16 23:50:39 +00:00
. ~/.nix-profile/etc/profile.d/nix.sh
# Use latest stable nixpkgs channel
2020-06-18 15:27:16 +00:00
nix-channel --add https://nixos.org/channels/nixos-20.03 nixpkgs
2020-01-16 23:50:39 +00:00
nix-channel --update
nix run -f $TOOL -c donate-ci