Skip to content

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

Closed

Description

@alinkedd

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

Activity

  1. 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
  2. berkai commented on Sep 11, 2024

    @berkai

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

  3. Aviii24x7 commented on Sep 11, 2024

    @Aviii24x7

    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!

  4. added a commit that references this issue on Sep 21, 2024
  5. alinkedd commented on Sep 25, 2024

    @alinkedd
    ContributorAuthor

    Fixed by #7161 for #7160

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions