Skip to content

Commit

Permalink
Use shared GitHub Actions
Browse files Browse the repository at this point in the history
This uses yamllint to check the GitHub Actions action.yml files.

Uses the shared actions introduced by <#8>.
  • Loading branch information
zmughal committed Sep 1, 2021
1 parent d7ee38d commit 3b425d8
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: perl
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
create:
jobs:
notify:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
repository: PDLPorters/devops
target-notifications: true
ci:
runs-on: 'ubuntu-latest'
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
needs: notify
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Run yamllint on actions
run: |
yamllint --format github github-actions
build-status:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
needs: [ 'ci' ]
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
repository: PDLPorters/devops
target-build-status: true
needs: ${{ toJSON(needs) }}
17 changes: 17 additions & 0 deletions .github/workflows/issue-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: issue-notify

on:
issues:
types: [opened]
issue_comment:
types: [created]

jobs:
notify:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }} && github.repository == 'PDLPorters/pdl'
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
repository: PDLPorters/PDL-Stats
2 changes: 2 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
extends: relaxed

0 comments on commit 3b425d8

Please sign in to comment.