Skip to content

Commit

Permalink
Auto update config files workflow
Browse files Browse the repository at this point in the history
This adds a workflow that runs daily to update the config files. It
simply runs `./updateConfigs.sh` and commits the changes directly to
`main`.
  • Loading branch information
aymanbagabas committed Aug 10, 2024
1 parent aac0f2a commit 15636e6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: update config files

on:
workflow_call:
schedule: # run script every day
- cron: "0 0 * * *"

permissions:
contents: write

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
./openvpn/updateConfigs.sh
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update config files

0 comments on commit 15636e6

Please sign in to comment.