Cleanup [skip ci]

This commit is contained in:
XargonWan 2024-08-02 20:06:33 +09:00
parent ab17dea538
commit 1532897c83
2 changed files with 26 additions and 26 deletions

View file

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