From 182de16e00a5fe232af4a049e30af81000dab382 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 17 Jan 2020 00:01:49 +0000 Subject: [PATCH] Donations --- .github/workflows/donate.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/donate.yml diff --git a/.github/workflows/donate.yml b/.github/workflows/donate.yml new file mode 100644 index 0000000..e38ae61 --- /dev/null +++ b/.github/workflows/donate.yml @@ -0,0 +1,20 @@ +name: donate + +on: + issues: + types: [opened, closed] + schedule: + - cron: '55 * * * *' # for updating balance + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # the scope is current repository only + TOOL: "https://github.com/jollheef/donate/archive/master.tar.gz" + run: | + curl https://nixos.org/nix/install | sh + . ~/.nix-profile/etc/profile.d/nix.sh + nix-channel --update + nix run -f $TOOL -c donate-ci