Skip to content

Commit

Permalink
Update and rename generate_json_prerelease.yml to generate_json_relea…
Browse files Browse the repository at this point in the history
…se.yml
  • Loading branch information
SciLor authored Nov 3, 2023
1 parent b94bf35 commit bd6a910
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: Generate JSONs for pre-release branch
name: Generate JSONs for release branch

# Controls when the workflow will run
on:
Expand All @@ -25,29 +25,29 @@ jobs:
- uses: actions/checkout@v4
with:
repository: toniebox-reverse-engineering/tonies-json
ref: pre-release
path: tonies-json-pre
ref: release
path: tonies-json-release

- name: Delete old artifacts tonies-json
run: |
cd tonies-json
rm -f tonies.json toniesV2.json
- name: Delete old artifacts tonies-json-pre
- name: Delete old artifacts tonies-json-release
run: |
cd tonies-json-pre
cd tonies-json-release
rm -f tonies.json toniesV2.json
- name: Run yaml2tonies-json.py
run: |
cd tonies-json
./yaml2tonies-json.py
mv tonies.json ../tonies-json-pre/
mv toniesV2.json ../tonies-json-pre/
mv tonies.json ../tonies-json-release/
mv toniesV2.json ../tonies-json-release/
- name: Check if files exist
run: |
cd tonies-json-pre
cd tonies-json-release
if [ -f "tonies.json" ] && [ -f "toniesV2.json" ]; then
echo "Files tonies.json and toniesV2.json exist."
else
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Commit and push if changed
run: |
cd tonies-json-pre
cd tonies-json-release
if [[ -n $(git status --porcelain) ]]; then
git add .
git commit -m "Auto-Update tonies.json and toniesV2.json"
Expand Down

0 comments on commit bd6a910

Please sign in to comment.