Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ValidationError: "// REF" must be of type object #27

Open
jjangga0214 opened this issue Feb 5, 2024 · 0 comments
Open

fix: ValidationError: "// REF" must be of type object #27

jjangga0214 opened this issue Feb 5, 2024 · 0 comments

Comments

@jjangga0214
Copy link

jjangga0214 commented Feb 5, 2024

Hi!

I wonder what this error means.

스크린샷 2024-02-05 오후 9 21 32

Background:

I wanted safe-publish label to be automatically unlabeled when it's labeled.
(Scenario: Human labels PR, and some workflows are run, and then the label is to be removed.)

.github/workflows/main.yaml:

name: main

on:
  pull_request_target:
    types: [labeled] # <-- The workflow is triggered when it's labeled.

jobs:
  main:
    permissions:
      contents: write 
      issues: write
      pull-requests: write 

    runs-on: ubuntu-latest

    steps:

      # - name: do something..... (Omitted for brevity)

      - name: unlabel # <-- I want to remove the label from the PR
        if: contains(github.event.pull_request.labels.*.name, 'safe-publish')
        uses: dessant/label-actions@v4
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

.github/label-actions.yml:

'safe-publish':
  prs:
    unlabel:
      - 'safe-publish'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant