Skip to content

Commit

Permalink
update workflows (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoeni authored Mar 20, 2024
1 parent 1667cfa commit 69cd30d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 18 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/license-update.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Update copyright year in license file
name: SFTI Update License

on:
schedule:
- cron: "0 3 1 1 *" # 03:00 AM on January 1

jobs:
yaml-lint:
uses: swissfintechinnovations/.github/.github/workflows/reusable-license-update-workflow.yaml@main
yaml-lint:
uses: swissfintechinnovations/.github/.github/workflows/reusable-license-update-workflow.yaml@main
16 changes: 16 additions & 0 deletions .github/workflows/lint-openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'SFTI Lint Specifications: OpenAPI Compliance'

on:
pull_request:
workflow_dispatch:
inputs:
filenames:
type: string
default: '*.yaml'
description: 'Files to be linted (list of files sperated by a whitespace). Default: *.yaml'

jobs:
openapi-lint:
uses: swissfintechinnovations/.github/.github/workflows/reusable-lint-openapi-workflow.yaml@main
with:
filenames: ${{ github.event.inputs.filenames || '*.yaml' }}
16 changes: 16 additions & 0 deletions .github/workflows/lint-yaml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'SFTI Lint Specifications: Yaml Compliance'

on:
pull_request:
workflow_dispatch:
inputs:
filenames:
type: string
default: '*.yaml'
description: 'Files to be linted (list of files sperated by a whitespace). Default: *.yaml'

jobs:
yaml-lint:
uses: swissfintechinnovations/.github/.github/workflows/reusable-lint-yaml-workflow.yaml@main
with:
filenames: ${{ github.event.inputs.filenames || '*.yaml' }}
11 changes: 0 additions & 11 deletions .github/workflows/lint.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Pipeline (reusable)
name: SFTI Release

on:
workflow_dispatch:
Expand All @@ -13,9 +13,9 @@ on:
default: true
required: true
artifact:
description: Add artifacts to the release. All files from /docs are added to the release.
type: boolean
default: false
description: Add artifacts to the release. All files from the provided folder(s) are added to the release. Folders or files are seperated by a single whitespace (e.g. file.txt folder/). **Do not use docs/**.
type: string
default: ''
required: false
force:
description: "If force is true, already published releases can be overwritten. Caution: This action deletes already published releases and can **not** be undone!"
Expand Down

0 comments on commit 69cd30d

Please sign in to comment.