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

[Bug]: analyze workflow fails because of deprecated version of actions/upload-artifact #7148

Closed
alinkedd opened this issue Sep 9, 2024 · 3 comments · May be fixed by #6651
Closed

[Bug]: analyze workflow fails because of deprecated version of actions/upload-artifact #7148

alinkedd opened this issue Sep 9, 2024 · 3 comments · May be fixed by #6651

Comments

@alinkedd
Copy link
Contributor

alinkedd commented Sep 9, 2024

Summary

Analyze workflow fails:

Error: 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/

Partially related to #5961

Should be fixed by #6651

Page

Details

No response

@alinkedd alinkedd changed the title [Bug]: analyze workflow fails because of deprecated version ofactions/upload-artifact [Bug]: analyze workflow fails because of deprecated version of actions/upload-artifact Sep 9, 2024
@berkai
Copy link

berkai commented Sep 11, 2024

changing from actions/upload-artifact@v2 to v3 helped my workflows as well.

@Aviii24x7
Copy link

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:

  1. Open your GitHub repository.
  2. Navigate to the .github/workflows/ directory where your workflow YAML files are stored.
  3. Edit the relevant workflow file (likely named something like deploy.yml or ci.yml).
  4. 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:

- name: Upload artifact
  uses: actions/upload-artifact@v2
  with:
    name: my-artifact
    path: path/to/artifact

Change it to:

- name: Upload artifact
  uses: actions/upload-artifact@v3
  with:
    name: my-artifact
    path: path/to/artifact
  1. Commit and push the changes to your repository.

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!

@alinkedd
Copy link
Contributor Author

Fixed by #7161 for #7160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants