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

bug: Workflow fails after adding a label on an issue #856

Closed
4 tasks done
FewerElk opened this issue Aug 16, 2024 · 1 comment
Closed
4 tasks done

bug: Workflow fails after adding a label on an issue #856

FewerElk opened this issue Aug 16, 2024 · 1 comment
Assignees

Comments

@FewerElk
Copy link

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.
  • I have set RUNNER_DEBUG: 1 for debugging.

Describe the bug

When I add a label on an issue the workflow fails and does not add comment.

Relevant links

YAML config:

comment:
  footer: "\
    ----\n\n
    > [!NOTE]\n
    > *This is an automated response created by a **GitHub Action***<br>
    > *Mentioning the bot won't have any effect!*
    "

labels:
  - name: 'EULA: Not accepted'
    labeled:
      issue:
        body: |-
          Hello @{{ issue.user.login }},
          
          It seems that you didn't aggre Minecraft EULA (End User License Agreement). You need to accept the terms (https://www.minecraft.net/en-us/eula) in eula.txt before running the server.
          
          This issue will be automatically closed.
        action: close
    - name: 'EULA: Not respected'
    labeled:
      issue:
        body: |-
          Hello @{{ issue.user.login }},
          
          It seems that you didn't respect the Minecraft EULA (End User License Agreement). As consequences you will not receive support.
          
          This issue will be automatically closed.
        action: close

YAML workflow:
name: Comment

on:
  issues:
    types:
    - labeled
    - unlabeled
  pull_request_target:
    types:
    - labeled
    - unlabeled

jobs:
  give_comment:
    if: github.event.issue.state == 'open' || github.event.pull_request.state == 'open'
    runs-on: ubuntu-latest
    steps:
    - name: Checkout Code
      uses: actions/checkout@v2
      with:
        ref: master
    - name: Send Issue/Pull request comment
      uses: peaceiris/actions-label-commenter@v1.8.2
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}

Relevant log output

image 2024-08-16T11:19:57.5765048Z ##[group]Run actions/checkout@v2 2024-08-16T11:19:57.5765624Z with: 2024-08-16T11:19:57.5765987Z ref: master 2024-08-16T11:19:57.5766553Z repository: FewerTeam/BeaconMC 2024-08-16T11:19:57.5767283Z token: *** 2024-08-16T11:19:57.5767652Z ssh-strict: true 2024-08-16T11:19:57.5768260Z persist-credentials: true 2024-08-16T11:19:57.5768731Z clean: true 2024-08-16T11:19:57.5769079Z fetch-depth: 1 2024-08-16T11:19:57.5769561Z lfs: false 2024-08-16T11:19:57.5769934Z submodules: false 2024-08-16T11:19:57.5770310Z set-safe-directory: true 2024-08-16T11:19:57.5770854Z ##[endgroup] 2024-08-16T11:19:57.8379286Z Syncing repository: FewerTeam/BeaconMC 2024-08-16T11:19:57.8381283Z ##[group]Getting Git version info 2024-08-16T11:19:57.8382236Z Working directory is '/home/runner/work/BeaconMC/BeaconMC' 2024-08-16T11:19:57.8383640Z [command]/usr/bin/git version 2024-08-16T11:19:57.8402393Z git version 2.46.0 2024-08-16T11:19:57.8428597Z ##[endgroup] 2024-08-16T11:19:57.8448897Z Temporarily overriding HOME='/home/runner/work/_temp/3a3bb47c-4ec1-43c4-9525-b7d1d582aa87' before making global git config changes 2024-08-16T11:19:57.8450794Z Adding repository directory to the temporary git global config as a safe directory 2024-08-16T11:19:57.8452395Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/BeaconMC/BeaconMC 2024-08-16T11:19:57.8495239Z Deleting the contents of '/home/runner/work/BeaconMC/BeaconMC' 2024-08-16T11:19:57.8500097Z ##[group]Initializing the repository 2024-08-16T11:19:57.8503924Z [command]/usr/bin/git init /home/runner/work/BeaconMC/BeaconMC 2024-08-16T11:19:57.8599608Z hint: Using 'master' as the name for the initial branch. This default branch name 2024-08-16T11:19:57.8601234Z hint: is subject to change. To configure the initial branch name to use in all 2024-08-16T11:19:57.8602424Z hint: of your new repositories, which will suppress this warning, call: 2024-08-16T11:19:57.8603299Z hint: 2024-08-16T11:19:57.8603834Z hint: git config --global init.defaultBranch 2024-08-16T11:19:57.8604473Z hint: 2024-08-16T11:19:57.8605199Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 2024-08-16T11:19:57.8606682Z hint: 'development'. The just-created branch can be renamed via this command: 2024-08-16T11:19:57.8607989Z hint: 2024-08-16T11:19:57.8608870Z hint: git branch -m 2024-08-16T11:19:57.8609994Z Initialized empty Git repository in /home/runner/work/BeaconMC/BeaconMC/.git/ 2024-08-16T11:19:57.8618955Z [command]/usr/bin/git remote add origin https://github.com/FewerTeam/BeaconMC 2024-08-16T11:19:57.8661937Z ##[endgroup] 2024-08-16T11:19:57.8662772Z ##[group]Disabling automatic garbage collection 2024-08-16T11:19:57.8665188Z [command]/usr/bin/git config --local gc.auto 0 2024-08-16T11:19:57.8694074Z ##[endgroup] 2024-08-16T11:19:57.8695043Z ##[group]Setting up auth 2024-08-16T11:19:57.8700181Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2024-08-16T11:19:57.8728861Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2024-08-16T11:19:57.9105715Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2024-08-16T11:19:57.9135225Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2024-08-16T11:19:57.9373785Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2024-08-16T11:19:57.9410858Z ##[endgroup] 2024-08-16T11:19:57.9412455Z ##[group]Fetching the repository 2024-08-16T11:19:57.9420716Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/master*:refs/remotes/origin/master* +refs/tags/master*:refs/tags/master* 2024-08-16T11:19:58.1150616Z The process '/usr/bin/git' failed with exit code 1 2024-08-16T11:19:58.1152744Z Waiting 11 seconds before trying again 2024-08-16T11:20:09.1176511Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/master*:refs/remotes/origin/master* +refs/tags/master*:refs/tags/master* 2024-08-16T11:20:09.5460656Z The process '/usr/bin/git' failed with exit code 1 2024-08-16T11:20:09.5461614Z Waiting 11 seconds before trying again 2024-08-16T11:20:20.5481122Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/master*:refs/remotes/origin/master* +refs/tags/master*:refs/tags/master* 2024-08-16T11:20:20.6961018Z ##[error]The process '/usr/bin/git' failed with exit code 1

Additional context.

Added label : EULA: Not accepted.

@FewerElk FewerElk added the bug Something isn't working label Aug 16, 2024
@FewerElk FewerElk closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2024
@peaceiris peaceiris added locked (resolved) and removed bug Something isn't working labels Aug 17, 2024
@actions-label-commenter
Copy link

Hi, there.

This issue has been LOCKED because of it being resolved!

If you still encounter this or it has changed, open a new issue instead of responding to solved ones.


This is an automated comment created by the peaceiris/actions-label-commenter. Responding to the bot or mentioning it won't have any effect.

@actions-label-commenter actions-label-commenter bot locked as resolved and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants