diff --git a/.github/workflows/update-to-latest.yaml b/.github/workflows/update-to-latest.yaml index 88162d1..917e0d4 100644 --- a/.github/workflows/update-to-latest.yaml +++ b/.github/workflows/update-to-latest.yaml @@ -14,6 +14,7 @@ jobs: uses: actions/checkout@v4 - name: update addon configuration in config.json + id: n8n_latest_version run: | actual_config=$(cat config.json | jq -r ".version" | awk -F"." '{print $3}') new_config=$((actual_config+1)) @@ -21,17 +22,18 @@ jobs: new_version="${actual_version}.${new_config}" jq ".version = \"${new_version}\"" config.json > config.json.tmp && mv config.json.tmp config.json n8n_version=$(cat Dockerfile | grep "FROM" | awk -F":" '{print $2}') + echo "::set-output name=new_version::${new_version}" sed -i "s/## \[Unreleased\]/## \[Unreleased\]\n\n## [ ${new_version} ] - $(date +%Y-%m-%d) \n\n Bump n8n to ${n8n_version} /g" CHANGELOG.md - name: create pull request uses: peter-evans/create-pull-request@v7 with: token: ${{ secrets.CR_PAT }} - commit-message: Update n8n to ${{ steps.n8n_latest_version.outputs.latest_release }} + commit-message: Update n8n to ${{ steps.n8n_latest_version.outputs.new_version }} title: Update n8n to ${{ steps.n8n_latest_version.outputs.latest_release }} body: | - Update n8n to ${{ steps.n8n_latest_version.outputs.latest_release }} - branch: update-n8n-${{ steps.n8n_latest_version.outputs.latest_release }} + Update n8n to ${{ steps.n8n_latest_version.outputs.new_version }} + branch: update-n8n-${{ steps.n8n_latest_version.outputs.new_version }} labels: | n8n update