atlassian-json/.github/workflows/json-master.yml

43 lines
871 B
YAML
Raw Normal View History

2021-01-15 00:55:17 +03:00
name: json-updater
on:
pull_request:
branches:
- '*'
tags:
- '*'
push:
branches:
- 'master'
schedule:
2021-01-15 01:06:13 +03:00
- cron: '0 0-23 * * *' # every hour
2021-01-15 00:55:17 +03:00
jobs:
2021-01-15 01:13:58 +03:00
update:
2021-01-15 00:55:17 +03:00
runs-on: ubuntu-20.04
steps:
2021-01-15 01:13:58 +03:00
- name: Checkout repository
uses: actions/checkout@v2
2021-01-15 01:06:13 +03:00
- name: Configure git
run: |
2021-01-15 01:13:58 +03:00
cd json-backups
2021-01-15 01:06:13 +03:00
ls -las
git config --global user.name "github-actions[bot]"
git config --global user.email "stamepicmorg@users.noreply.github.com"
- name: Update files
run: |
cd json-backups
ls -las
./update.sh
2021-01-15 01:13:58 +03:00
- name: Commit and push changes
uses: devops-infra/action-commit-push@master
with:
github_token: ${{ secrets.GHT }}
commit_message: Atlassian JSON updated
commit_prefix: "[AUTO-COMMIT]"