From d1e603f61fe440e5581ffa23d517870b076b0323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 8 Oct 2024 20:01:03 +0200 Subject: [PATCH] Initial commit --- .github/workflows/test-sign.yaml | 37 ++++++++++++++++++++++++++++++++ README.md | 5 +++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/test-sign.yaml create mode 100644 README.md diff --git a/.github/workflows/test-sign.yaml b/.github/workflows/test-sign.yaml new file mode 100644 index 0000000..b5f136e --- /dev/null +++ b/.github/workflows/test-sign.yaml @@ -0,0 +1,37 @@ +--- +name: Periodic flake update +on: # yamllint disable-line rule:truthy + push: + schedule: + - cron: "0 */2 * * *" + +permissions: + contents: write + +jobs: + flake-update: + runs-on: ubuntu-latest + container: + image: ghcr.io/catthehacker/ubuntu:runner-latest + steps: + - uses: actions/checkout@v3 + with: + ref: master + - name: configure git + env: + SSH_PRIVKEY: ${ secrets.BOT_SSH_PRIVKEY } + SSH_PUBKEY: ${ secrets.BOT_SSH_PUBKEY} + run: | + mkdir -p ~/.ssh || exit 0 + echo "$SSH_PRIVKEY" > ~/.ssh/id_ed25519 + echo "$SSH_PUBKEY" > ~/.ssh/id_ed25519.pub + chmod -R 0600 ~/.ssh + git config --global user.name 'torjus-bot' + git config --global user.email 'torjus-bot@git.t-juice.club' + git config --global user.signingKey = "~/.ssh/id_ed25519.pub" + git config --global gpg.format ssh + git config --global commit.gpgsign true + - name: add something to a file + run: echo $RANDOM > random.txt + - name: push + run: git push diff --git a/README.md b/README.md new file mode 100644 index 0000000..393366d --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# workflow-testing + +Repo for testing workflows + +