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 }} token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
continue-on-error: true continue-on-error: true
- name: Clone Cooker repo # - name: Clone Cooker repo
if: contains(env.BRANCH_NAME, 'feat/') == false # if: contains(env.BRANCH_NAME, 'feat/') == false
uses: actions/checkout@v3 # uses: actions/checkout@v3
with: # with:
repository: RetroDECK/RetroDECK # repository: RetroDECK/RetroDECK
#ref: cooker # #ref: cooker
ref: feat/lighter-manifest # TODO: put cooker when this is merged # ref: feat/lighter-manifest # TODO: put cooker when this is merged
submodules: 'recursive' # submodules: 'recursive'
token: ${{ secrets.TRIGGER_BUILD_TOKEN }} # token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
path: cooker # path: cooker
- name: "Update RetroDECK Cooker manifest with new artifact URL and SHA256" # - name: "Update RetroDECK Cooker manifest with new artifact URL and SHA256"
if: contains(env.BRANCH_NAME, 'feat/') == false # if: contains(env.BRANCH_NAME, 'feat/') == false
run: | # run: |
NEW_URL="https://github.com/RetroDECK/ES-DE/releases/download/${{env.BRANCH_NAME}}-${{env.DATE}}/RetroDECK-ES-DE-Artifact.tar.gz" # 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) # 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].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].sha256 = strenv(NEW_SHA256)' cooker/net.retrodeck.retrodeck.yml
- name: Commit and push changes to Cooker repo # - name: Commit and push changes to Cooker repo
if: contains(env.BRANCH_NAME, 'feat/') == false # if: contains(env.BRANCH_NAME, 'feat/') == false
run: | # run: |
cd "${GITHUB_WORKSPACE}/cooker" # cd "${GITHUB_WORKSPACE}/cooker"
git config user.name "GitHub Actions" # git config user.name "GitHub Actions"
git config user.email "actions@github.com" # git config user.email "actions@github.com"
git add net.retrodeck.retrodeck.yml # git add net.retrodeck.retrodeck.yml
git commit -m "ES-DE: updated module with new artifact URL and SHA256 [skip ci]" # git commit -m "ES-DE: updated module with new artifact URL and SHA256 [skip ci]"
git push origin HEAD # git push origin HEAD

Binary file not shown.