Skip to content
tag

GitHub Action

Periodic Labeler fixed

v0.0.5 Latest version

Periodic Labeler fixed

tag

Periodic Labeler fixed

Periodically label pull requests based on changed files

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Periodic Labeler fixed

uses: potiuk/periodic-labeler@v0.0.5

Learn more about this action in potiuk/periodic-labeler

Choose a version

Branch Cleanup Action

A GitHub action to automatically label all PRs according to file patterns.

Table of Contents

Usage

Action is meant to be run as periodic job. This is needed to workaround issues regarding lack of write access when executed from fork which is a common problem when using https://github.com/actions/labeler.

---
name: Pull request labeler
on:
  schedule:
    - cron: '*/5 * * * *'
jobs:
  labeler:
    runs-on: ubuntu-latest
    steps:
      - uses: docker://docker.pkg.github.com/potiuk/periodic-labeler/periodic-labeler:v0.0.5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_REPOSITORY: ${{ github.repository }}
          LABEL_MAPPINGS_FILE: .github/labeler.yml

By default action uses .github/labeler.yml located in repository from GITHUB_REPOSITORY as a source of pattern matchers. This file uses the same schema as in https://github.com/actions/labeler