* Use .venv as Python venv dir * Update refs to Python venv dir and use action to cache and setup * Add missing shell: bash * Source for Python deps * Exclude .venv from lint * Update ChangeLog * Add cache-key arg for init-python * Add missing " * Use workflow specific Python cache names * Fixed cache key for Linux * Use bash if to make output clearer in case of skipping. * Clearer debug output * Add check for cache key * Add missing shell * Add SonarCloud and Valgrind venv cache * Fixed typo
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: Check if tech support issue
|
|
on:
|
|
issues:
|
|
types: [opened]
|
|
workflow_dispatch:
|
|
inputs:
|
|
issue_number:
|
|
description: "Issue number"
|
|
required: true
|
|
issue_body:
|
|
description: "Issue body"
|
|
required: true
|
|
|
|
jobs:
|
|
issue-check-support:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python venv
|
|
uses: ./.github/actions/
|
|
with:
|
|
cache-key: "ubuntu-latest"
|
|
|
|
- name: Check issue
|
|
id: issue-check
|
|
run: ./scripts/github.py --issue-check-tech-support
|
|
env:
|
|
ISSUE_BODY: ${{ github.event.issue.body || github.event.inputs.issue_body }}
|
|
|
|
- name: Add comment for customer
|
|
if: steps.issue-check.outputs.may-need-tech-support == 'true'
|
|
env:
|
|
COMMENT_BODY: |
|
|
Hello, as a customer, you're entitled to tech support which is included in your
|
|
license. Please [raise a support ticket](https://symless.com/synergy/contact)
|
|
if you'd like to take advantage of that. If that works for you, then please let
|
|
us know your ticket number so we can continue the discussion there.
|
|
uses: actions/github-script@v6
|
|
with:
|
|
script: |
|
|
github.rest.issues.createComment({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number || github.event.inputs.issue_number,
|
|
body: process.env.COMMENT_BODY
|
|
});
|