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

Upgrade "actions/upload-artifact" GitHub Action #205

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

aik099
Copy link
Member

@aik099 aik099 commented Oct 31, 2024

Upgrading "actions/upload-artifact" GitHub Action, because the v2 is used, which causes the build to fail https://github.com/minkphp/MinkZombieDriver/actions/runs/11610353612 with this message:

This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/

P.S.
While I'm at it I've decided to upgrade other used GitHub Actions as well.

@@ -84,7 +84,7 @@ jobs:

- name: Archive logs artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs_php-${{ matrix.php }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name needs to be update to also include other elements of the matrix, to avoid having multiple jobs uploading with the same name, which is forbidden in v4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

The build fails. Not sure if it passed in recent couple of years, while GitHub Actions was preserving past build logs.

@aik099
Copy link
Member Author

aik099 commented Oct 31, 2024

I think the purpose of this PR is fulfilled - the build now works and each of the reported errors can be addressed as a separate PRs.

@aik099 aik099 merged commit 6be6d9a into minkphp:master Oct 31, 2024
0 of 8 checks passed
@aik099 aik099 deleted the upload-artifact-gh-action-fix branch October 31, 2024 11:40
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.

2 participants