Skip to content

remove trailing comment in workflow files #16

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

Merged
merged 1 commit into from
May 25, 2024

Conversation

advaitjain
Copy link
Contributor

#15 was attempting to prevent nightly workflows from running in forks.

However, the yaml was incorrectly formatted, which gave the following error (workflow_dispatch log):

Invalid workflow file: .github/workflows/nightly_pip_test.yml#L19
The workflow is not valid. .github/workflows/nightly_pip_test.yml (Line: 19, Col: 9): Unexpected symbol: '#'. Located at position 134 within expression: github.event_name == 'workflow_dispatch' ||
(github.event_name == 'schedule' && github.repository == 'google-ai-edge/ai-edge-torch') # don't run in forks.

This PR is removing the trailing comment and has been verified to work by running the workflow via dispatch from my branch in my fork (log).

BUG=fix broken workflow.

image

Prior to this change, we get the following error:
```
Invalid workflow file: .github/workflows/nightly_pip_test.yml#L19
The workflow is not valid. .github/workflows/nightly_pip_test.yml (Line: 19, Col: 9): Unexpected symbol: '#'. Located at position 134 within expression: github.event_name == 'workflow_dispatch' ||
(github.event_name == 'schedule' && github.repository == 'google-ai-edge/ai-edge-torch') # don't run in forks.
```
@advaitjain advaitjain requested a review from chunnienc as a code owner May 25, 2024 23:56
@advaitjain
Copy link
Contributor Author

I'm going to merge without code reviews to get the change in so that I can verify manually and also see the results of the nightly run.

@advaitjain advaitjain merged commit 7f52f70 into google-ai-edge:main May 25, 2024
1 check passed
@advaitjain advaitjain deleted the fix-workflow-format branch May 25, 2024 23:57
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 this pull request may close these issues.

1 participant