Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Can develop be merged through a PR and not a push?
James Coleabcecc7476d3
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 6b6c5ef089..f87d8a7581 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -22,9 +22,17 @@ jobs:uses: actions/checkout@v4with:fetch-depth: 0+ - name: Import GPG key+ uses: crazy-max/ghaction-import-gpg@v6+ with:+ gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}+ passphrase: ${{ secrets.PASSPHRASE }}+ git_user_signingkey: true+ git_commit_gpgsign: true- name: Switch branchrun: |if [[ "develop" == "$version" ]]; then+ echo "The branch is 'develop'"git checkout --track origin/developgit pullelif [[ "$version" == branch* ]]; then@@ -33,6 +41,7 @@ jobs:git checkout --track origin/$PULLBRANCHgit pullelse+ echo "The branch is 'main'"git config user.name github-actionsgit config user.email 41898282+github-actions[bot]@users.noreply.github.comgit checkout --track origin/develop@@ -134,18 +143,14 @@ jobs:composer update --no-dev --no-scripts --no-plugins -qsudo chown -R runner:docker resources/lang.ci/phpcs.sh || true- - name: Import GPG key- uses: crazy-max/ghaction-import-gpg@v6- with:- gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}- passphrase: ${{ secrets.PASSPHRASE }}- name: Releaserun: |# do some configurationsudo timedatectl set-timezone Europe/Amsterdam- git config user.name github-actions- git config user.email 41898282+github-actions[bot]@users.noreply.github.com+ git config user.name JC5+ git config user.email [email protected]git config advice.addIgnoredFile false+ git config push.autoSetupRemote true# set some variablesreleaseName=$version@@ -193,13 +198,20 @@ jobs:doneecho "Will use tag and release name $releaseName."+ # create a new branch to store the difference in.+ BRANCHNAME=release-$(date +'%s')+ git checkout -b $BRANCHNAME+# add all content, except output.txt (this contains the changelog and/or the download instructions)echo 'Add all and reset output.txt'git add -Aif test -f "output.txt"; thengit reset output.txtfi- git commit -m "Auto commit for release '$version' on $(date +'%Y-%m-%d')" || true++ # push to a new branch.++ git commit -m "π€ Auto commit for release '$version' on $(date +'%Y-%m-%d')" || truegit push# zip and tar everything@@ -298,9 +310,19 @@ jobs:# create a development release:if [[ "develop" == "$version" ]]; then++ # create PR and merge it right away into develop.+ gh pr create -B develop -H $BRANCHNAME --title 'π€ Automatic PR to merge all changes into the develop branch.' --body 'π€ Created by GitHub action'+ gh pr merge -b 'π€ Automatically merge the PR into the develop branch.' -d --rebase++ # pull the changes from the develop branch.+ git checkout develop+ git merge origin/develop+ git pull+# create the release:- echo "Create develop release."- git tag -a $releaseName -m "Development release '$version' on $(date +'%Y-%m-%d')"+ echo "Create develop release under tag '$releaseName'."+ git tag -a $releaseName -m "π€ Development release '$version' on $(date +'%Y-%m-%d')"git push origin $releaseNamegh release create $releaseName -p --verify-tag \