This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1305 from DiamondLightSource/819_add_dodal_nexgen…
…_version_to_release_notes_part_2 819 add dodal and nexgen versions to release notes
- Loading branch information
Showing
4 changed files
with
60 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ on: | |
jobs: | ||
pin_dependency_versions: | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
|
@@ -28,11 +30,19 @@ jobs: | |
MSG=$(.github/workflows/pin_versions.py) | ||
echo "COMMIT_MESSAGE=\"$MSG\"" >> "$GITHUB_OUTPUT" | ||
- name: Add setup.cfg | ||
run: git add setup.cfg | ||
run: | | ||
git add setup.cfg | ||
- name: Commit changes | ||
run: | | ||
git config --global user.name "GitHub Workflow" | ||
git config --global user.email "[email protected]" | ||
git commit -m ${{steps.pin_versions.outputs.COMMIT_MESSAGE}} | ||
git tag ${{inputs.tagName}} | ||
git push origin ${{inputs.tagName}} | ||
- name: Create Release | ||
run: gh release create --generate-notes --draft ${{inputs.tagName}} | ||
- name: Edit Release Notes | ||
run: | | ||
echo -e "${{ steps.pin_versions.outputs.COMMIT_MESSAGE }}\n\n" > "$RUNNER_TEMP/relnotes.txt" | ||
gh release view ${{ inputs.tagName }} | sed '0,/^--$/d' >> "$RUNNER_TEMP/relnotes.txt" | ||
gh release edit ${{ inputs.tagName }} --notes-file "$RUNNER_TEMP/relnotes.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters