Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
ci: validate and use token for GitHub releases
johaven9c5859d7cba6
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 2b975e3b..b3044d64 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -66,10 +66,22 @@ jobs:capture { print }' CHANGELOG.md > latest-changelog.md+ - name: Validate release GitHub token+ shell: bash+ env:+ GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}+ run: |+ set -euo pipefail++ if [ -z "${GITHUB_TOKEN-}" ]; then+ echo "::error::Missing RELEASE_GITHUB_TOKEN secret. Use a personal access token from the account that should appear as the GitHub release author."+ exit 1+ fi+- name: Create GitHub Releaseuses: softprops/action-gh-release@v3env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}with:draft: truebody_path: latest-changelog.md