mirror of
https://github.com/revanced/revanced-static-api.git
synced 2025-05-02 15:44:26 +02:00
ci: Correct step names
This commit is contained in:
parent
40cfd1150e
commit
a945d75023
12
.github/workflows/update.yml
vendored
12
.github/workflows/update.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Update static API
|
name: Update static files
|
||||||
|
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
name: Update static API
|
name: Update static files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
@ -19,10 +19,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.11.3
|
python-version: 3.11.3
|
||||||
|
|
||||||
- name: Create configuration file
|
- name: Write config file
|
||||||
run: echo "${{ vars.CONFIG }}" > config.json
|
run: echo "${{ vars.CONFIG }}" > config.json
|
||||||
|
|
||||||
- name: Check for existing deployment exists
|
- name: Check if a deployment exists
|
||||||
run: |
|
run: |
|
||||||
if git ls-remote --exit-code --heads origin gh-pages; then
|
if git ls-remote --exit-code --heads origin gh-pages; then
|
||||||
echo "::set-output name=deployment-exists::true"
|
echo "::set-output name=deployment-exists::true"
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
git config user.email github@revanced.app
|
git config user.email github@revanced.app
|
||||||
git subtree add --prefix=static/ origin/gh-pages --squash
|
git subtree add --prefix=static/ origin/gh-pages --squash
|
||||||
|
|
||||||
- name: Update static API
|
- name: Update static files
|
||||||
run: |
|
run: |
|
||||||
pip install requests
|
pip install requests
|
||||||
python src/main.py
|
python src/main.py
|
||||||
@ -46,7 +46,7 @@ jobs:
|
|||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: EndBug/add-and-commit@v9
|
uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
message: "chore: updated static files"
|
message: "chore: Update static files"
|
||||||
fetch: false
|
fetch: false
|
||||||
push: false
|
push: false
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user