From d03eb30b5f29f787820ebc1906cf567c3ab9013d Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 5 Mar 2023 20:40:48 +0800 Subject: [PATCH] Update build step for building webring --- .github/workflows/build-webring.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build-webring.yml b/.github/workflows/build-webring.yml index 92811d0..aab7c73 100644 --- a/.github/workflows/build-webring.yml +++ b/.github/workflows/build-webring.yml @@ -12,3 +12,17 @@ jobs: with: nix_path: nixpkgs=channel:nixpkgs-unstable - run: nix develop -c make build-openring + - run: | + # Show the commit as set by the Actions bot. + # https://github.com/actions/checkout/discussions/479 + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + + # Commit the update. + git add ./layouts/partials/openring.html + git commit --message "Update webring as of $(date +%F)" + + # Push it into the current branch. + git remote remove origin + git remote add origin https://${{ secrets.GITHUB_TOKEN }}@github.com/foo-dogsquared/website.git + git push --set-upstream origin master