Skip to content

Merge pull request #708 from Webperf-se/update-version-in-package-json #7

Merge pull request #708 from Webperf-se/update-version-in-package-json

Merge pull request #708 from Webperf-se/update-version-in-package-json #7

Workflow file for this run

# https://github.com/simbo/changes-since-last-release-action
name: Prepare Release
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "software-full.json"
- "Dockerfile"
schedule:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onschedule
# * is a special character in YAML so you have to quote this string
- cron: "30 6 1 * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # [!] we need to checkout with tags and commit history
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- name: 📋 Get Commits since last Release
id: changes
uses: simbo/[email protected]
with:
line-prefix: "* "
include-hashes: false
- name: Generate new release version
id: newversion
run: python tools/release.py -u "${{ steps.changes.outputs.last-tag }}"
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: Updated version in package.json to latest
branch: update-version-in-package-json
title: "Prepare release - ${{ env.NEW_VERSION }}"
body: |
Approving this PR triggers creation of a new release.
Changes since ${{ steps.changes.outputs.last-tag }}:
${{ steps.changes.outputs.log }}
assignees: 7h3Rabbit
reviewers: 7h3Rabbit
add-paths: |
package.json