-
-
Notifications
You must be signed in to change notification settings - Fork 23
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 correctly read event file with ::before tag #129
Comments
Can you post a link to the actual action logs or, if the repo is private, a copy of the logs of the entire step that uses the action? |
just this
|
It seems like the action is able to parse the event file, but it doesn't contain a "before" tag... |
No with second and more commits it works. But within the first I would like to compare it with the target branch. Anyway I want just make a check that developers manually updated the version before merge it. |
Oh, ok, I get it: in this case I think it would be better not to check against her previous commit, but against the base branch.
So, recap: - name: Check version number 👀
id: version_check
uses: EndBug/version-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
static-checking: localIsNew
# Replace YOUR_PATH_TO_PACKAGE_FILE.JSON with the local path of your package file.
file-url: https://raw.githubusercontent.com/${{ github.repo }}/${{ github.base_ref }}/YOUR_PATH_TO_PACKAGE_FILE.JSON
- name: Check version number 👀
if: steps.version_check.outputs.changed == 'false'
run: |
echo "No version change 🐞"
exit 1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
I am trying to implement the simplest version check in this order
To Reproduce
For the first commit to the PR I've got this error
Error: Can't correctly read event file (before: undefined, repository: [object Object])
Expected behavior
I expect pipeline to fail when the version is not updated
The text was updated successfully, but these errors were encountered: