Skip to content

Commit

Permalink
Create keep_automation.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rqthomas authored Jan 31, 2024
1 parent 1a1b49e commit 81190a6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/keep_automation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:

name: keep automation

jobs:
write_small_file:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
OSN_KEY: ${{ secrets.OSN_KEY }}
OSN_SECRET: ${{ secrets.OSN_SECRET }}
container: rocker/rstudio:latest
steps:
- run: git config --system --add safe.directory '*'

- uses: actions/checkout@v4
with:
fetch-depth: 0
set-safe-directory: '*'

- name: Make small file
run: date >> keep_automation.txt

- name: Commit and Push
run: |
git pull
git config user.name github-actions
git config user.email [email protected]
git add keep_automation.txt
git commit -a -m "keeping automation" || echo "nothing to commit"
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY}

0 comments on commit 81190a6

Please sign in to comment.