From 3df4a6e878b5f392711f621bfba815600c43c4a0 Mon Sep 17 00:00:00 2001 From: Bastian Schmidt Date: Tue, 16 Apr 2024 14:05:18 +0200 Subject: [PATCH] Add GitHub actions for gem release and linting --- .github/workflows/release_gem.yaml | 17 +++++++++++++++++ .github/workflows/yamllint.yaml | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/release_gem.yaml create mode 100644 .github/workflows/yamllint.yaml diff --git a/.github/workflows/release_gem.yaml b/.github/workflows/release_gem.yaml new file mode 100644 index 0000000..62cca0c --- /dev/null +++ b/.github/workflows/release_gem.yaml @@ -0,0 +1,17 @@ +--- +name: Release + +# yamllint disable-line rule:truthy +on: + push: + # Pattern matched against refs/tags + tags: ['**'] + +jobs: + release: + name: Release gem + uses: theforeman/actions/.github/workflows/release-gem.yml@v0 + with: + allowed_owner: theforeman + secrets: + api_key: ${{ secrets.RUBYGEM_API_KEY }} diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml new file mode 100644 index 0000000..3a64689 --- /dev/null +++ b/.github/workflows/yamllint.yaml @@ -0,0 +1,11 @@ +--- +name: Yaml Lint +# yamllint disable-line rule:truthy +on: [push, pull_request] +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: yaml-lint + uses: ibiqlik/action-yamllint@v3