ci: Correct step names

This commit is contained in:
oSumAtrIX 2023-10-29 22:48:09 +01:00
parent 40cfd1150e
commit a945d75023
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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