mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-19 05:49:17 +00:00
feat: add GitHub Actions workflows for code quality and automation (#2)
This commit is contained in:
33
sync-labels/action.yml
Normal file
33
sync-labels/action.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
|
||||
name: Sync labels
|
||||
description: Sync labels from a YAML file to a GitHub repository
|
||||
author: Ismo Vuorinen
|
||||
|
||||
inputs:
|
||||
labels:
|
||||
description: 'Path to the labels YAML file'
|
||||
required: true
|
||||
default: 'labels.yml'
|
||||
|
||||
outputs:
|
||||
labels:
|
||||
description: 'Path to the labels YAML file'
|
||||
value: ${{ inputs.labels }}
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: ⤵️ Download latest labels definitions
|
||||
shell: bash
|
||||
run: |
|
||||
curl -s --retry 5 \
|
||||
"https://raw.githubusercontent.com/ivuorinen/actions/refs/heads/main/sync-labels/labels.yml" \
|
||||
> ${{ inputs.labels }}
|
||||
|
||||
- name: 🚀 Run Label Syncer
|
||||
uses: micnncim/action-label-syncer@v1.3.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
manifest: ${{ inputs.labels }}
|
||||
Reference in New Issue
Block a user