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

Bump GitHub Actions: setup-java, upload-artifact #66

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

mbland
Copy link
Owner

@mbland mbland commented Dec 19, 2023

Specifically:

  • actions/setup-java@v4
  • actions/upload-artifact@v4

Specifically:

- actions/setup-java@v4
- actions/upload-artifact@v4
@mbland mbland self-assigned this Dec 19, 2023
The previous commit bumped actions/upload-artifact in run-tests.yml to
v4. The dorny/test-reporter@v1 action doesn't seem equipped to handle
this upgrade, as the publish-test-results action on #66 failed. Using
actions/download-artifact@v4 directly instead of relying on
test-reporter seems like it should work.
@mbland
Copy link
Owner Author

mbland commented Dec 19, 2023

GitHub Actions used the changes to run-tests.yml that included actions/upload-artifact@v4, but didn't use the changes to publish-test-results.yml that included actions/download-artifact@v4:

https://github.com/mbland/tomcat-servlet-testing-example/actions/runs/7267718663/job/19802113940

Going to force merge and see what happens to the build on main.

@mbland mbland merged commit 01303b1 into main Dec 19, 2023
2 checks passed
@mbland mbland deleted the bump-github-actions branch December 19, 2023 21:27
mbland added a commit that referenced this pull request Dec 19, 2023
The addition of actions/download-artifact@v4 to
publish-test-results.yaml in #66 still failed:

- https://github.com/mbland/tomcat-servlet-testing-example/actions/runs/7267779677/job/19802307107

What was interesting was the `run-id:` value from the "Download test
results" step:

  Run actions/download-artifact@v4
    with:
      name: test-results
      merge-multiple: false
      repository: mbland/tomcat-servlet-testing-example
      run-id: 7267779677
  Downloading single artifact
  Error: Unable to download artifact(s): Artifact not found for name:
    test-results

followed by this line from "Post test report":

  Action was triggered by workflow_run: using SHA and RUN_ID from
  triggering workflow

So this change attempts to fix the breakage by adding
`github.event.workflow_run.id` to the actions/download-artifact
configuration.
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