You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: analyze workflow fails because of deprecated version of actions/upload-artifact #7148
changed the title [-][Bug]: `analyze` workflow fails because of deprecated version of`actions/upload-artifact`[/-][+][Bug]: `analyze` workflow fails because of deprecated version of `actions/upload-artifact`[/+]on Sep 9, 2024
The error you're seeing is due to GitHub deprecating versions v1 and v2 of the actions/upload-artifact action. To fix this on your deployed GitHub Pages, you need to update your workflow file to use the latest version (v3) of actions/upload-artifact.
Here's how you can do it:
Open your GitHub repository.
Navigate to the .github/workflows/ directory where your workflow YAML files are stored.
Edit the relevant workflow file (likely named something like deploy.yml or ci.yml).
Locate the usage of actions/upload-artifact@v2 and replace it with actions/upload-artifact@v3.
For example, if your workflow currently looks like this:
Activity
[-][Bug]: `analyze` workflow fails because of deprecated version of`actions/upload-artifact`[/-][+][Bug]: `analyze` workflow fails because of deprecated version of `actions/upload-artifact`[/+]berkai commentedon Sep 11, 2024
changing from
actions/upload-artifact@v2tov3helped my workflows as well.Aviii24x7 commentedon Sep 11, 2024
The error you're seeing is due to GitHub deprecating versions
v1andv2of theactions/upload-artifactaction. To fix this on your deployed GitHub Pages, you need to update your workflow file to use the latest version (v3) ofactions/upload-artifact.Here's how you can do it:
.github/workflows/directory where your workflow YAML files are stored.deploy.ymlorci.yml).actions/upload-artifact@v2and replace it withactions/upload-artifact@v3.For example, if your workflow currently looks like this:
Change it to:
After making these changes, your workflow should be able to run successfully without triggering the deprecated version error.
Let me know if you need further assistance!
2024/09/21 | Update build_prod.yml
alinkedd commentedon Sep 25, 2024
Fixed by #7161 for #7160