Migrating to a common module manifest

This commit is contained in:
XargonWan 2024-07-25 22:43:46 +09:00
parent b7cf5e87ba
commit 922ae2ff77
3 changed files with 10 additions and 10 deletions

View file

@ -29,10 +29,10 @@ jobs:
run: "automation_tools/install_dependencies.sh" run: "automation_tools/install_dependencies.sh"
- name: "Creating manifest manifest" - name: "Creating manifest manifest"
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/update_manifest_manifest.sh" run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/update_manifest.sh"
- name: "[DEBUG] Outputting manifest" - name: "[DEBUG] Outputting manifest"
run: cat net.retrodeck.manifest.yml run: cat net.retrodeck.module.yml
- name: "Build flatpak" - name: "Build flatpak"
id: "flatpak-download" id: "flatpak-download"
@ -40,9 +40,9 @@ jobs:
flatpak-builder --user --force-clean \ flatpak-builder --user --force-clean \
--install-deps-from=flathub \ --install-deps-from=flathub \
--install-deps-from=flathub-beta \ --install-deps-from=flathub-beta \
--repo=${GITHUB_WORKSPACE}/manifest-repo \ --repo=${GITHUB_WORKSPACE}/module-repo \
"${GITHUB_WORKSPACE}"/manifest-build-dir \ "${GITHUB_WORKSPACE}"/module-build-dir \
net.retrodeck.manifest.yml net.retrodeck.module.yml
- name: "Exporting dir tree" - name: "Exporting dir tree"
id: tree id: tree
@ -50,8 +50,8 @@ jobs:
- name: Create Artifact for RetroDECK - name: Create Artifact for RetroDECK
run: | run: |
tar -czf ${GITHUB_WORKSPACE}/RetroDECK-manifest-Artifact.tar.gz -C ${GITHUB_WORKSPACE}/manifest-build-dir . tar -czf ${GITHUB_WORKSPACE}/RetroDECK-module-Artifact.tar.gz -C ${GITHUB_WORKSPACE}/manifest-build-dir .
hash=($(sha256sum ${GITHUB_WORKSPACE}/RetroDECK-manifest-Artifact.tar.gz)) hash=($(sha256sum ${GITHUB_WORKSPACE}/RetroDECK-module-Artifact.tar.gz))
echo $hash > ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.sha echo $hash > ${GITHUB_WORKSPACE}/RetroDECK-Artifact-cooker.sha
mv -f RetroDECK-Artifact-cooker.* ${{ secrets.ARTIFACT_REPO }} mv -f RetroDECK-Artifact-cooker.* ${{ secrets.ARTIFACT_REPO }}
continue-on-error: true continue-on-error: true
@ -74,10 +74,10 @@ jobs:
tag: "${{env.BRANCH_NAME}}-${{env.DATE}}" tag: "${{env.BRANCH_NAME}}-${{env.DATE}}"
body: | body: |
# Release Notes # Release Notes
These are the artifact of RetroDECK manifest, commit: ${{ github.event.repository.full_name }}@${{github.sha}}. These are the artifact of this RetroDECK module, commit: ${{ github.event.repository.full_name }}@${{github.sha}}.
On branch [${{env.BRANCH_NAME}}](https://github.com/XargonWan/RetroDECK-manifest/tree/${{env.BRANCH_NAME}}). On branch [${{env.BRANCH_NAME}}](https://github.com/XargonWan/RetroDECK-manifest/tree/${{env.BRANCH_NAME}}).
artifacts: "RetroDECK-manifest-Artifact.tar.gz, tree.html" artifacts: "RetroDECK-module-Artifact.tar.gz, tree.html"
allowUpdates: true allowUpdates: true
makeLatest: true makeLatest: true
token: ${{ secrets.TRIGGER_BUILD_TOKEN }} token: ${{ secrets.TRIGGER_BUILD_TOKEN }}

View file

@ -2,7 +2,7 @@
Do not edit `net.retrodeck.module.yml` nor `manifest-header.yml`: Do not edit `net.retrodeck.module.yml` nor `manifest-header.yml`:
These files are automatically generated by `automation_tools/update_module_manifest.sh`. These files are automatically generated by `automation_tools/update_manifest.sh`.
`manifest-header.yml` is generated from the RetroDECK manifest itself, mind that: `manifest-header.yml` is generated from the RetroDECK manifest itself, mind that:
- any changes to `net.retrodeck.module.yml` will be discarded. - any changes to `net.retrodeck.module.yml` will be discarded.