mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 13:45:38 +00:00
Cleanup [skip ci]
This commit is contained in:
parent
ab17dea538
commit
1532897c83
52
.github/workflows/build_es-de.yml
vendored
52
.github/workflows/build_es-de.yml
vendored
|
@ -79,33 +79,33 @@ jobs:
|
|||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||
continue-on-error: true
|
||||
|
||||
- name: Clone Cooker repo
|
||||
if: contains(env.BRANCH_NAME, 'feat/') == false
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: RetroDECK/RetroDECK
|
||||
#ref: cooker
|
||||
ref: feat/lighter-manifest # TODO: put cooker when this is merged
|
||||
submodules: 'recursive'
|
||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||
path: cooker
|
||||
# - name: Clone Cooker repo
|
||||
# if: contains(env.BRANCH_NAME, 'feat/') == false
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# repository: RetroDECK/RetroDECK
|
||||
# #ref: cooker
|
||||
# ref: feat/lighter-manifest # TODO: put cooker when this is merged
|
||||
# submodules: 'recursive'
|
||||
# token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||
# path: cooker
|
||||
|
||||
- name: "Update RetroDECK Cooker manifest with new artifact URL and SHA256"
|
||||
if: contains(env.BRANCH_NAME, 'feat/') == false
|
||||
run: |
|
||||
NEW_URL="https://github.com/RetroDECK/ES-DE/releases/download/${{env.BRANCH_NAME}}-${{env.DATE}}/RetroDECK-ES-DE-Artifact.tar.gz"
|
||||
NEW_SHA256=$(cat ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.sha)
|
||||
# - name: "Update RetroDECK Cooker manifest with new artifact URL and SHA256"
|
||||
# if: contains(env.BRANCH_NAME, 'feat/') == false
|
||||
# run: |
|
||||
# NEW_URL="https://github.com/RetroDECK/ES-DE/releases/download/${{env.BRANCH_NAME}}-${{env.DATE}}/RetroDECK-ES-DE-Artifact.tar.gz"
|
||||
# NEW_SHA256=$(cat ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.sha)
|
||||
|
||||
yq e -i '.modules[] | select(.name == "ES-DE") | .sources[0].url = strenv(NEW_URL)' cooker/net.retrodeck.retrodeck.yml
|
||||
yq e -i '.modules[] | select(.name == "ES-DE") | .sources[0].sha256 = strenv(NEW_SHA256)' cooker/net.retrodeck.retrodeck.yml
|
||||
# yq e -i '.modules[] | select(.name == "ES-DE") | .sources[0].url = strenv(NEW_URL)' cooker/net.retrodeck.retrodeck.yml
|
||||
# yq e -i '.modules[] | select(.name == "ES-DE") | .sources[0].sha256 = strenv(NEW_SHA256)' cooker/net.retrodeck.retrodeck.yml
|
||||
|
||||
- name: Commit and push changes to Cooker repo
|
||||
if: contains(env.BRANCH_NAME, 'feat/') == false
|
||||
run: |
|
||||
cd "${GITHUB_WORKSPACE}/cooker"
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "actions@github.com"
|
||||
git add net.retrodeck.retrodeck.yml
|
||||
git commit -m "ES-DE: updated module with new artifact URL and SHA256 [skip ci]"
|
||||
git push origin HEAD
|
||||
# - name: Commit and push changes to Cooker repo
|
||||
# if: contains(env.BRANCH_NAME, 'feat/') == false
|
||||
# run: |
|
||||
# cd "${GITHUB_WORKSPACE}/cooker"
|
||||
# git config user.name "GitHub Actions"
|
||||
# git config user.email "actions@github.com"
|
||||
# git add net.retrodeck.retrodeck.yml
|
||||
# git commit -m "ES-DE: updated module with new artifact URL and SHA256 [skip ci]"
|
||||
# git push origin HEAD
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue