mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-16 13:23:35 +00:00
26 lines
830 B
YAML
26 lines
830 B
YAML
name: donate
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, closed]
|
|
schedule:
|
|
- cron: '35 * * * *' # for updating balance
|
|
|
|
jobs:
|
|
comment:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- env:
|
|
# 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 }}
|
|
TOOL: "https://github.com/jollheef/donate/archive/master.tar.gz"
|
|
run: |
|
|
curl -L https://nixos.org/nix/install | sh
|
|
. ~/.nix-profile/etc/profile.d/nix.sh
|
|
# Use latest stable nixpkgs channel
|
|
nix-channel --add https://nixos.org/channels/nixos-20.03 nixpkgs
|
|
nix-channel --update
|
|
nix run -f $TOOL -c donate-ci
|