-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# v0.3 | ||
name: New issue | ||
|
||
on: | ||
|
@@ -11,21 +12,27 @@ jobs: | |
permissions: | ||
issues: write | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Get package name | ||
id: get_package_name | ||
uses: ASzc/change-string-case-action@v5 | ||
with: | ||
string: ${{ github.event.repository.name }} | ||
- name: Get NPM version | ||
id: get_npm_version | ||
uses: satak/[email protected] | ||
with: | ||
url: https://registry.npmjs.org/iobroker.luftdaten | ||
method: GET | ||
run: echo "LATEST_VERSION=$(npm view ${{ steps.get_package_name.outputs.lowercase }}@latest version)" >> "$GITHUB_OUTPUT" | ||
- name: Create comment | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Thanks for reporting a new issue @${{ github.actor }}! | ||
1. Please make sure your topic is not covered in the [documentation](https://github.com/klein0r/ioBroker.luftdaten/blob/master/docs/en/README.md) | ||
2. Ensure that you use the latest **beta version** (not the current stable version): **${{ fromJson(steps.get_npm_version.outputs.output).data['dist-tags'].latest }}** | ||
1. Please make sure your topic is not covered in the [documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md) | ||
2. Ensure that you use the latest **beta version** (not the current stable version): **${{ steps.get_npm_version.outputs.LATEST_VERSION }}** | ||
3. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue | ||
4. [Search for the issue topic](https://github.com/klein0r/ioBroker.luftdaten/issues?q=is%3Aissue) in other/closed issues to avoid duplicates! | ||
4. [Search for the issue topic](https://github.com/${{ github.event.repository.full_name }}/issues?q=is%3Aissue) in other/closed issues to avoid duplicates! | ||
---- | ||
*Otherwise this issue will be closed.* |