1.1.1 • Published 9 months ago

get-pr-labels-on-push-action v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Get PR Labels on Push Action

This action returns the labels applied to a PR when pushed.

Inputs

github-token

Required The repository token, i.e. secrets.GITHUB_TOKEN

Outputs

result

A list of labels applied to the PR

Example Usage

uses: Bandwidth/get-pr-labels-on-push-action@v1.1.1
with:
  github-token: ${{ secrets.GITHUB_TOKEN }}

Example Workflow

e.g. .github/workflows/main.yml

on:
  push:
    branches:
      - main

jobs:
  get_pr_labels_job:
    runs-on: ubuntu-latest
    name: A job to get the PR labels
    steps:
    - name: Get PR labels action step
      id: get_pr_labels
      uses: Bandwidth/get-pr-labels-on-push-action@v1.1.1
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
    - name: See result
      run: echo "${{ steps.check_pr_labels.outputs.result }}"
1.1.1

9 months ago

1.1.0

9 months ago