Skip to content

Commit

Permalink
Extract version details
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenMaude committed Jul 10, 2024
1 parent 121f2ca commit b6ff8e6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/create-job-server-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,21 @@ jobs:
python-version: "3.12"

- name: Update requirement to latest
id: update-requirement
run: |
just update-interactive-templates "$(git describe --tags)"
just update-interactive-templates
updated_version="$(sed -n 's|^interactive_templates@https://github.com/opensafely-core/interactive-templates/archive/refs/tags/\(v[0-9.].*\).zip$|\1|p' requirements.prod.in)"
echo "UPDATED_VERSION=$updated_version" >> "$GITHUB_ENV"
- name: Create a Pull Request if there are any changes
id: create_pr
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
token: "${{ secrets.JOB_SERVER_PR_TOKEN }}"
branch: bot/update-interactive-templates
commit-message: "feat: Update interactive templates to latest version"
title: "Update interactive templates to latest version"
body: "Update interative-templates to ${{ github.sha }}"
commit-message: "feat: Update interactive templates to ${{ env.UPDATED_VERSION }}"
title: "Update interactive templates to ${{ env.UPDATED_VERSION }}"
body: "Update interactive-templates to ${{ env.UPDATED_VERSION }}"

# untested
#- name: Enable automerge
Expand Down

0 comments on commit b6ff8e6

Please sign in to comment.