-
-
Notifications
You must be signed in to change notification settings - Fork 78
42 lines (34 loc) · 859 Bytes
/
Copy pathupdate_source.yml
File metadata and controls
42 lines (34 loc) · 859 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
37
38
39
40
41
42
name: Update Source
on:
release:
types: [published]
workflow_dispatch:
jobs:
update-source:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Update JSON source
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python .github/update_source.py
- name: Update apps.json in Release 1.0
uses: softprops/action-gh-release@v2
with:
tag_name: "0.0.1-a1"
files: |
.github/source.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}