Update release.yml

Signed-off-by: James Cole <james@firefly-iii.org>
This commit is contained in:
James Cole
2025-08-18 10:21:37 +02:00
committed by GitHub
parent 0a48c0c20f
commit 11d2f8d471

View File

@@ -50,7 +50,7 @@ jobs:
git pull git pull
echo "Current branch is $(git branch --show-current)" echo "Current branch is $(git branch --show-current)"
env: env:
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }} version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}
- name: Configure Git - name: Configure Git
run: | run: |
# do some configuration # do some configuration
@@ -118,7 +118,7 @@ jobs:
env: env:
FIREFLY_III_ROOT: /github/workspace FIREFLY_III_ROOT: /github/workspace
GH_TOKEN: "" GH_TOKEN: ""
FF_III_VERSION: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }} FF_III_VERSION: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}
- name: Generate JSON v1 - name: Generate JSON v1
id: json-v1 id: json-v1
uses: JC5/firefly-iii-dev@main uses: JC5/firefly-iii-dev@main
@@ -221,7 +221,7 @@ jobs:
echo "tarName=$tarName" >> "$GITHUB_ENV" echo "tarName=$tarName" >> "$GITHUB_ENV"
echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_ENV" echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_ENV"
env: env:
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }} version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}
- name: Commit all changes - name: Commit all changes
run: | run: |
# add all content, except output.txt (this contains the changelog and/or the download instructions) # add all content, except output.txt (this contains the changelog and/or the download instructions)
@@ -232,7 +232,7 @@ jobs:
git commit -m "🤖 Auto commit for release '$version' on $(date +'%Y-%m-%d')" || true git commit -m "🤖 Auto commit for release '$version' on $(date +'%Y-%m-%d')" || true
git push git push
env: env:
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }} version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}
- name: Generate release description - name: Generate release description
id: release-description id: release-description
uses: JC5/firefly-iii-dev@main uses: JC5/firefly-iii-dev@main
@@ -291,7 +291,7 @@ jobs:
echo "DONE!" echo "DONE!"
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }} version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}
- name: Create archives - name: Create archives
run: | run: |
echo "Create zip file $zipName" echo "Create zip file $zipName"
@@ -375,7 +375,7 @@ jobs:
fi fi
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }} version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}
- name: Upload artifacts - name: Upload artifacts
run: | run: |
# add zip file to release. # add zip file to release.
@@ -411,4 +411,4 @@ jobs:
rm -f $tarName.sha256 rm -f $tarName.sha256
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }} version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}