-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add installer to release asset issue - #139 #149
Changes from 5 commits
33aa04c
dc3d146
7771337
76b5d2d
f3cd0d8
a6d8ba7
3659310
768d258
e8c14e7
c03f4e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -4,6 +4,8 @@ on: | |||||||||||||||||||||||||||||
branches: [ "main" ] | ||||||||||||||||||||||||||||||
pull_request: | ||||||||||||||||||||||||||||||
branches: [ "main" ] | ||||||||||||||||||||||||||||||
release: | ||||||||||||||||||||||||||||||
types: [created] | ||||||||||||||||||||||||||||||
workflow_dispatch: | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
env: | ||||||||||||||||||||||||||||||
|
@@ -175,6 +177,14 @@ jobs: | |||||||||||||||||||||||||||||
- name: Checkout | ||||||||||||||||||||||||||||||
uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
- name: Set Version in settings.json | ||||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||||
$VERSION="${{ github.event.release.tag_name }}" | ||||||||||||||||||||||||||||||
$content = Get-Content -Raw settings.json | ConvertFrom-Json | ||||||||||||||||||||||||||||||
$content.version = $VERSION | ||||||||||||||||||||||||||||||
$content | ConvertTo-Json -Depth 100 | Set-Content settings.json | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
- name: Download package as artifact | ||||||||||||||||||||||||||||||
uses: actions/download-artifact@v4 | ||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||
|
@@ -408,3 +418,11 @@ jobs: | |||||||||||||||||||||||||||||
name: OpenMS-App | ||||||||||||||||||||||||||||||
path: | | ||||||||||||||||||||||||||||||
OpenMS-App.zip | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
- name: Upload Artifact as Release Asset | ||||||||||||||||||||||||||||||
if: github.event_name == 'release' | ||||||||||||||||||||||||||||||
uses: softprops/action-gh-release@v1 | ||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||
files: OpenMS-App.zip | ||||||||||||||||||||||||||||||
env: | ||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Update the Release Asset Upload Step for Consistency - uses: softprops/action-gh-release@v1
+ uses: softprops/action-gh-release@v2 📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.4)424-424: the runner of "softprops/action-gh-release@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) |
||||||||||||||||||||||||||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Update the Release Asset Upload Step for Compatibility and Formatting
softprops/action-gh-release@v1
, which is flagged by static analysis as outdated. Consider updating it to a newer version (for example,softprops/action-gh-release@v2
) to ensure compatibility with current GitHub Actions runners.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
276-276: the runner of "softprops/action-gh-release@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🪛 YAMLlint (1.35.1)
[error] 273-273: trailing spaces
(trailing-spaces)
[error] 280-280: no new line character at the end of file
(new-line-at-end-of-file)