From 5742e7e7a5d8c06c7fc368d1d05aae0ad4f3808d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 10 Oct 2024 16:14:53 -0400 Subject: [PATCH] Add ability to manually set chromium ver --- .forgejo/workflows/generate-tarball.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/generate-tarball.yml b/.forgejo/workflows/generate-tarball.yml index 3e24c6526d2a..ff362583885c 100644 --- a/.forgejo/workflows/generate-tarball.yml +++ b/.forgejo/workflows/generate-tarball.yml @@ -2,9 +2,13 @@ on: workflow_dispatch: inputs: ref_name: - description: 'tag or commit' + description: 'electron tag or commit' required: true type: string + chromium_ver: + description: 'chromium tag or commit' + required: false + type: string push: tags: @@ -36,11 +40,16 @@ jobs: run: | if test $GITHUB_REF_NAME == "ci" ; then CI_REF_NAME=${{ inputs.ref_name }} + _chromiumver=${{ inputs.chromium_ver }} else CI_REF_NAME=$GITHUB_REF_NAME fi echo $CI_REF_NAME > ci_ref_name - curl --silent https://raw.githubusercontent.com/electron/electron/$CI_REF_NAME/DEPS | grep "'chromium_version':" -A 1 | tail -n 1 | tr -d "'" | tr -d ',' | tr -d ' ' > chromiumver + if [ -n "$_chromiumver" ]; then + echo $_chromiumver > chromiumver + else + curl --silent https://raw.githubusercontent.com/electron/electron/$CI_REF_NAME/DEPS | grep "'chromium_version':" -A 1 | tail -n 1 | tr -d "'" | tr -d ',' | tr -d ' ' > chromiumver + fi - name: Fetching electron run: | read CI_REF_NAME < ci_ref_name @@ -70,7 +79,7 @@ jobs: run: | read CI_REF_NAME < ci_ref_name read _chromiumver < chromiumver - tar -cf $pkgname-$_semver-$_chromium.tar --exclude="ChangeLog*" --exclude="testdata/*" --exclude="test_data/*" --exclude="android_rust_toolchain/*" --exclude-backups --exclude-caches-all --exclude-vcs electron-$CI_REF_NAME-$_chromiumver + tar -cf $pkgname-$_semver-$_chromium.tar --exclude="ChangeLog*" --exclude="testdata/*" --exclude="test_data/*" --exclude="android_rust_toolchain/*" --exclude-backups --exclude-caches-all --exclude-vcs electron-$CI_REF_NAME-$_chromiumver.tar zstd --auto-threads=logical --ultra --long -22 -T"${ZSTD_LIMIT:-0}" -vv electron-$CI_REF_NAME-$_chromiumver.tar -o electron-$CI_REF_NAME-$_chromiumver.tar.zst - name: Computing checksums