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

Can't get it to work in new yml format #5

Closed
roni-frantchi opened this issue Aug 25, 2019 · 3 comments · Fixed by #7
Closed

Can't get it to work in new yml format #5

roni-frantchi opened this issue Aug 25, 2019 · 3 comments · Fixed by #7
Assignees

Comments

@roni-frantchi
Copy link

# repo/.github/pr-labeler.yml

feature: ['feature-*', 'feat-*']
fix: fix-*
chore: chore-*
# repo/.github/workflows/pr-labeler.yml
name: Label PRs

on: [pull_request]

jobs:
  pr-labeler:
    runs-on: ubuntu-latest
    steps:
      - uses: TimonVS/pr-labeler@master
        if: github.event.action == 'opened'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Opened a PR named chore-xxx.

Output:

Run TimonVS/pr-labeler@master 1s
/usr/bin/docker run --name fe0f7da0b1cc59af4aa18a61b21c5bd6dc2b_84031a --label 29fe0f --workdir /github/workspace --rm -e GITHUB_TOKEN -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/env0/env0":"/github/workspace" 29fe0f:7da0b1cc59af4aa18a61b21c5bd6dc2b
Run TimonVS/pr-labeler@master
  env:
    GITHUB_TOKEN: ***
/usr/bin/docker run --name fe0f7da0b1cc59af4aa18a61b21c5bd6dc2b_84031a --label 29fe0f --workdir /github/workspace --rm -e GITHUB_TOKEN -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/env0/env0":"/github/workspace" 29fe0f:7da0b1cc59af4aa18a61b21c5bd6dc2b
@TimonVS
Copy link
Owner

TimonVS commented Aug 26, 2019

Hey @roni-frantchi, thanks for filing an issue! I haven't looked into porting this Action to the new format yet. I'll probably look into it in the coming weekend.

@TimonVS TimonVS self-assigned this Aug 26, 2019
@amacado
Copy link
Contributor

amacado commented Sep 5, 2019

I can confirm the described error by @roni-frantchi.

@amacado
Copy link
Contributor

amacado commented Sep 5, 2019

I opened a pull request (#7) which fixes the issue and updates the readme with the new YAML configuration format.

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

Successfully merging a pull request may close this issue.

3 participants