Files
adyen-postman/.github/workflows/trigger-postman.yml
2023-02-22 15:08:21 +01:00

34 lines
1.1 KiB
YAML

name: "Generate latest definitions files"
env:
VS_WORKFLOW_TYPE: "trigger-postman"
on:
workflow_dispatch:
jobs:
dummy:
name: "Dummy action"
runs-on: ubuntu-latest
steps:
- 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