generated from version-fox/vfox-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (31 loc) · 1012 Bytes
/
update_otp_versions.yaml
File metadata and controls
36 lines (31 loc) · 1012 Bytes
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
34
35
36
name: update_otp_versions
on:
schedule:
- cron: "0 16 * * 2"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Update version file
run: |
cd assets
python -m pip install requests
python get_all_otp_versions.py
- name: Push updated version file
run: |
pwd
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"github-actions[bot]
if [[ -n $(git status -s) ]]; then
git add .
git commit -m "chore(versions.txt): update Erlang/OTP version file"
git push https://github-actions[bot]:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
else
echo "never updated."
fi