π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
app-release: use the app token as GH_TOKEN throughout, drop APP_GH_TOKEN
Manav Rathi4b4f72edd8da
diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.ymlindex 94f0f5e471..22747e5d5a 100644--- a/.github/workflows/app-release.yml+++ b/.github/workflows/app-release.yml@@ -42,7 +42,6 @@ jobs:name: release-branch-pushenv:APP: ${{ inputs.app }}- GH_TOKEN: ${{ github.token }}VERSION: ${{ inputs.version }}steps:@@ -71,7 +70,7 @@ jobs:- name: Start releaseif: inputs.action == 'start'env:- APP_GH_TOKEN: ${{ steps.app_token.outputs.token }}+ GH_TOKEN: ${{ steps.app_token.outputs.token }}APP_SLUG: ${{ steps.app_token.outputs.app-slug }}run: |set -euo pipefail@@ -88,7 +87,7 @@ jobs:git_push_release_branch() {git -c http.https://github.com/.extraheader= push \- "https://x-access-token:${APP_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$@"+ "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$@"}bot_id="$(gh api "/users/${APP_SLUG}[bot]" --jq .id)"@@ -119,7 +118,7 @@ jobs:figit_push_release_branch "${release_branch}"- GH_TOKEN="${APP_GH_TOKEN}" gh release delete "${beta_tag}" --yes --cleanup-tag --repo ente-io/nightly || true+ gh release delete "${beta_tag}" --yes --cleanup-tag --repo ente-io/nightly || truegit push origin ":refs/tags/${beta_tag}" || truegit switch -c "${next_branch}" main@@ -134,12 +133,12 @@ jobs:git commit -am "Start ${APP^} ${next_version}"git push -u origin "${next_branch}"- GH_TOKEN="${APP_GH_TOKEN}" gh pr create --base main --head "${next_branch}" --title "[${APP}] Start ${APP^} ${next_version}" --body ""+ gh pr create --base main --head "${next_branch}" --title "[${APP}] Start ${APP^} ${next_version}" --body ""- name: Promote releaseif: inputs.action == 'promote'env:- APP_GH_TOKEN: ${{ steps.app_token.outputs.token }}+ GH_TOKEN: ${{ steps.app_token.outputs.token }}run: |set -euo pipefail@@ -155,13 +154,13 @@ jobs:git_push_release_branch() {git -c http.https://github.com/.extraheader= push \- "https://x-access-token:${APP_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$@"+ "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$@"}release_branch="release/${APP}-v${VERSION}"if [ "${APP}" = "photos-desktop" ]; then- if ! draft="$(GH_TOKEN="${APP_GH_TOKEN}" gh release view "v${VERSION}" --repo ente-io/photos-desktop --json isDraft --jq .isDraft 2>/dev/null)" || [ "${draft}" != "true" ]; then+ if ! draft="$(gh release view "v${VERSION}" --repo ente-io/photos-desktop --json isDraft --jq .isDraft 2>/dev/null)" || [ "${draft}" != "true" ]; thenecho "::error::v${VERSION} draft release does not exist in photos-desktop"exit 1fi@@ -175,8 +174,8 @@ jobs:git tag "photos-desktop-v${VERSION}" "${release_sha}"git push origin "refs/tags/photos-desktop-v${VERSION}"- GH_TOKEN="${APP_GH_TOKEN}" gh release edit "v${VERSION}" --repo ente-io/photos-desktop --draft=false --prerelease=false --latest- GH_TOKEN="${APP_GH_TOKEN}" gh release delete "photos-desktop-v${VERSION}" --yes --cleanup-tag --repo ente-io/nightly || true+ gh release edit "v${VERSION}" --repo ente-io/photos-desktop --draft=false --prerelease=false --latest+ gh release delete "photos-desktop-v${VERSION}" --yes --cleanup-tag --repo ente-io/nightly || truegit_push_release_branch ":refs/heads/${release_branch}"exit 0fi@@ -208,7 +207,7 @@ jobs:gh release edit "${rc_tag}" --tag "${final_tag}" --title "${final_tag}" --target "${release_sha}" --draft=false --prerelease=false --verify-taggit push origin ":refs/tags/${rc_tag}" || true- GH_TOKEN="${APP_GH_TOKEN}" gh release delete "${rc_tag}" --yes --cleanup-tag --repo ente-io/nightly || true+ gh release delete "${rc_tag}" --yes --cleanup-tag --repo ente-io/nightly || truegit_push_release_branch ":refs/heads/${release_branch}"sync-docs: