Skip to content

Commit

Permalink
(simatec) Issue Workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Oct 16, 2024
1 parent 0c54950 commit 78f5604
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/new-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# v0.5
name: New issue

on:
issues:
types: [opened]

jobs:
issueCreated:
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request && !startsWith(github.event.issue.title, 'Update stable version in repo') }}
permissions:
issues: write
steps:
- name: Setup node
id: setup_node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Get package name
id: get_package_name
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.event.repository.name }}
- name: Get NPM version
id: get_npm_version
run: echo "LATEST_VERSION=$(npm view ${{ steps.get_package_name.outputs.lowercase }}@latest version)" >> "$GITHUB_OUTPUT"
- name: Create comment
id: create_comment_ok
if: ${{ contains(github.event.issue.body, steps.get_npm_version.outputs.LATEST_VERSION) }}
uses: peter-evans/create-or-update-comment@v4
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 [German documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/de/backitup.md) or [English documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/backitup.md)
2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
3. [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.*
- name: Create comment (beta version)
id: create_comment_version
if: ${{ !contains(github.event.issue.body, steps.get_npm_version.outputs.LATEST_VERSION) }}
uses: peter-evans/create-or-update-comment@v4
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/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md)
2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
3. [Search for the issue topic](https://github.com/${{ github.event.repository.full_name }}/issues?q=is%3Aissue) in other/closed issues to avoid duplicates!
4. Ensure that you use the latest available **beta version** of this adapter (not the current stable version): **${{ steps.get_npm_version.outputs.LATEST_VERSION }}**
----
*Otherwise this issue will be closed.*
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ When you allow iobroker GmbH to collect diagnostic data, then also your installa
### **WORK IN PROGRESS**
* (simatec) Fix FTP Connections
* (simatec) dependencies updated
* (simatec) Issue Workflow added

### 3.0.25 (2024-09-26)
* (bluefox) Improvement of Google Drive authentication workflow
Expand Down
2 changes: 1 addition & 1 deletion io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
],
"globalDependencies": [
{
"admin": ">=6.17.11"
"admin": ">=7.2.6"
}
],
"adminUI": {
Expand Down

0 comments on commit 78f5604

Please sign in to comment.