forked from atsign-foundation/atsign.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.07 KB
/
UpdateLibraries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: UpdateLibraries
on:
workflow_dispatch:
schedule:
- cron: '15 14 * * *' # At 1415 daily
jobs:
check-for-library-changes:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/[email protected] # checkout the repository content to github runner.
- name: setup python
uses: actions/[email protected]
with:
python-version: 3.9 #install the python needed
- name: execute detail_at.py
run: |
pip3 install requests pyyaml
git config --global user.name 'Library Action'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git pull
./.github/@automation/detail_at.py
if [ -z "$(git status --porcelain)" ]; then
echo 'No changes to commit on this run'
exit 0
else
git commit -am 'Automated libraries.md update from pub.dev'
git push
fi
env:
GITHUB_API_TOKEN: ${{ secrets.REPO_TOKEN }}