workflow-test/.github/workflows/test-sign.yaml

37 lines
1.0 KiB
YAML
Raw Normal View History

2024-10-08 18:01:03 +00:00
---
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: |
2024-10-08 18:03:48 +00:00
echo "$SSH_PRIVKEY" > /tmp/id_ed25519
echo "$SSH_PUBKEY" > /tmp/id_ed25519.pub
2024-10-08 18:01:03 +00:00
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