Adding details in the GitHub Issue creation process tempalte

This commit is contained in:
Julien Lengrand-Lambert
2023-02-22 15:08:21 +01:00
parent 6e8c6e0b95
commit 110153a49b
2 changed files with 23 additions and 4 deletions

View File

@@ -1,10 +1,14 @@
---
name: OpenAPI changes
about: Files need to be generated again
name: OpenAPI changes {{tools.context.sha}}
title: New changes in adyen-openapi
labels: enhancement
assignees: jlengrand, gcatanese
---
See [adyen-openapi](https://github.com/adyen/adyen-openapi)
See the diff here -> https://github.com/Adyen/adyen-openapi/commit/{{tools.context.sha}}.
The list of changed files is the following ->
{{env.FILENAMES}}
See [adyen-openapi](https://github.com/adyen/adyen-openapi) for more details.

View File

@@ -11,9 +11,24 @@ jobs:
name: "Dummy action"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: 'Adyen/adyen-openapi'
fetch-depth: 0
- name: Get changed files in the yaml folder
id: changed-files-specific
uses: tj-actions/changed-files@v35
with:
files: yaml/*.yaml
- name: Run nothing if no file in the yaml folder has changed
if: steps.changed-files-specific.outputs.any_changed == 'false'
run: |
echo "No changes detected in the yaml folder. Nothing to do!"
- name: Files have changed in the YAML folder, we create an issue
- uses: JasonEtco/create-an-issue@v2
if: steps.changed-files-specific.outputs.any_changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILENAMES: ${{ steps.changed-files-specific.outputs.all_changed_files }}
with:
filename: .github/ISSUE_TEMPLATE/openapi-changes.yml