Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vbem/reusable

Yet another repository of reusable workflows for GitHub Actions
https://github.com/vbem/reusable

Last synced: about 8 hours ago
JSON representation

Yet another repository of reusable workflows for GitHub Actions

Awesome Lists containing this project

README

        

# Yet another repository of reusable workflows

[![Static Badge](https://img.shields.io/badge/GitHub%20Actions-reusable%20workflows-blue?logo=github)](https://docs.github.com/en/actions/using-workflows/reusing-workflows)
[![GitHub](https://img.shields.io/github/license/vbem/reusable?color=blue)](LICENSE)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/vbem/reusable?label=Release&logo=github)](https://github.com/vbem/reusable/releases)
[![superlinter.test](https://github.com/vbem/reusable/actions/workflows/superlinter.test.yml/badge.svg)](https://github.com/vbem/reusable/actions/workflows/superlinter.test.yml)
[![keepalive.test](https://github.com/vbem/reusable/actions/workflows/keepalive.test.yml/badge.svg)](https://github.com/vbem/reusable/actions/workflows/keepalive.test.yml)

## `superlinter`

[`superlinter.yml`](.github/workflows/superlinter.yml) predefined generic configurations for the well-known [*Super-Linter* action](https://github.com/marketplace/actions/super-linter). Create `.github/workflows/linter.yaml` in your repository:

```yaml
---
name: Linter

concurrency:
group: ${{ github.workflow }}@${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [master, main]
workflow_dispatch:

jobs:
calling:
permissions:
contents: read
packages: read
statuses: write
uses: vbem/reusable/.github/workflows/superlinter.yml@v1
...
```

## `keepalive`

[`keepalive.yml`](.github/workflows/keepalive.yml) is a wrapper the well-known [*Keepalive Workflow* action](https://github.com/marketplace/actions/keepalive-workflow). Create `.github/workflows/alive.yaml` in your repository:

```yaml
---
name: Alive

on:
schedule: [ cron: '0 0 * * 1,3,5' ] # in UTC-0 timezone
workflow_dispatch:

jobs:
calling:
permissions:
contents: write
uses: vbem/reusable/.github/workflows/keepalive.yml@v1
...
```