Random syntax error when triggering the labeler with on.pull_request_target
See original GitHub issue🐞 Problem
When using the on.pull_request_target option with types: [opened, reopened] arguments, GitHub actions complained about the syntax of the YML file, see the following log:
- Failing actions file: https://github.com/pyansys/pymapdl/actions/runs/2245457610/workflow
However, if replaced by the on.pull_request option, the syntax error is no longer reported. See the log:
- Passing actions file: https://github.com/pyansys/pymapdl/actions/runs/2245994855/workflow
The associated PR can be found in: https://github.com/pyansys/pymapdl/pull/1085
Any insights on which is the reason behind this behavior would be super useful.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
8/19 my code seems to be fine, keep getting syntax error
8/19 my code seems to be fine, keep getting syntax error. from random import randint. random_number = randint(1, 10). guesses_left = 3 guess...
Read more >Random SyntaxError result when using Shift-Return to run code
Issue Type: Bug About 20% of the time, when running the code below with 'Shift-Return', I receive a 'SyntaxError: invalid syntax' outcome.
Read more >getting a invalid syntaxerror for random.randint in python
I am new to python when I try this randomNumber = random.randint(1,3). I get a "invalid syntax" error. not sure what I am...
Read more >CS 111: Python Errors
The most common type of error, a syntax error occurs when the interpreter is reading the Python file to determine if it is...
Read more >SyntaxError invalid syntax
SyntaxError : invalid syntax Syntax errors are the most common type of error, because there are so many things you can do wrong!...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you! In this case, I am closing the issue. Please contact us if you have any questions.
Hello @jorgepiloto! I’ve forked the pymapdl repository and replaced the
pull_requestevent with thepull_request_targetevent in the label.yml file like this:Everything works without failures. It was probably a syntax error in your workflow.