28 lines
892 B
YAML
Raw Normal View History

2024-12-20 22:37:32 +01:00
on: [push]
jobs:
test-on-protected-branch:
2024-12-20 23:43:40 +01:00
runs-on: opensuse_bci_golang
2024-12-20 22:37:32 +01:00
steps:
- name: Fix dns
run: echo 'nameserver 1.1.1.1' > /etc/resolv.conf
2024-12-20 23:43:40 +01:00
- name: Install packages
run: |
zypper ref
zypper in -y go
2024-12-20 22:37:32 +01:00
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACTION_TOKEN }}
- name: Add a line to README.md
run: |
echo -e "$(date) - commited via Gitea Actions\n" >> README.md
- name: Commit changes back
uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
with:
2024-12-20 22:44:26 +01:00
commit_user_name: gitea-actions-bot
2024-12-20 23:43:40 +01:00
commit_user_email: bot+gitea@example.com
2024-12-20 22:44:26 +01:00
commit_author: Gitea Actions bot <bot+gitea@example.com>
2024-12-20 22:37:32 +01:00
commit_message: "[skip actions] Gitea Actions run"
commit_options: '--no-edit'
skip_fetch: true