Skip to content

feat: add main action for labeling #40

feat: add main action for labeling

feat: add main action for labeling #40

Workflow file for this run

name: E2E
on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited
jobs:
e2e-default:
runs-on: ubuntu-20.04
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Test Run
id: test-run
uses: ./
- name: Check labels
id: check-labels
working-directory: .github/.scripts
run: echo "added_labels=$(./check_added_labels.sh)" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository_owner }}/${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_TITLE: ${{ github.event.pull_request.title }}
- name: Assert current and expected labels
uses: nick-fields/assert-action@v2
with:
actual: ${{ steps.check-labels.outputs.added_labels }}
expected: ${{ steps.test-run.outputs.labels_to_add }}