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

update to the latest pages action so that it might work again #311

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

cburroughs
Copy link
Contributor

The last docs update failed with:
https://github.com/pantsbuild/pantsbuild.org/actions/runs/12934911051/job/36077004632

Getting action download info
Download action repository 'actions/checkout@v3' (SHA:f43a0e5ff2bd294095638e18286ca9a3d1956744)
Download action repository 'actions/setup-node@v3' (SHA:1a4442cacd436585916779262731d5b162bc6ec7)
Download action repository 'actions/cache@v3' (SHA:f4b3439a656ba812b8cb417d2d49f9c810103092)
Download action repository 'actions/configure-pages@v3' (SHA:b8130d9ab958b325bbde9786d62f2c97a9885a0e)
Download action repository 'actions/upload-pages-artifact@v2' (SHA:a753861a5debcf57bf8b404356158c8e1e33150c)
Download action repository 'actions/deploy-pages@v2' (SHA:de14547edc9944350dc0481aa5b7afb08e75f254)
Getting action download info
Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

This is presumably from a transitive dependency from deploy-pages@v2 to the deprecated action.

The last docs update failed with:
https://github.com/pantsbuild/pantsbuild.org/actions/runs/12934911051/job/36077004632

```
Getting action download info
Download action repository 'actions/checkout@v3' (SHA:f43a0e5ff2bd294095638e18286ca9a3d1956744)
Download action repository 'actions/setup-node@v3' (SHA:1a4442cacd436585916779262731d5b162bc6ec7)
Download action repository 'actions/cache@v3' (SHA:f4b3439a656ba812b8cb417d2d49f9c810103092)
Download action repository 'actions/configure-pages@v3' (SHA:b8130d9ab958b325bbde9786d62f2c97a9885a0e)
Download action repository 'actions/upload-pages-artifact@v2' (SHA:a753861a5debcf57bf8b404356158c8e1e33150c)
Download action repository 'actions/deploy-pages@v2' (SHA:de14547edc9944350dc0481aa5b7afb08e75f254)
Getting action download info
Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
```

This is presumably from a transitive dependency from `deploy-pages@v2`
to the deprecated action.
@tdyas
Copy link
Contributor

tdyas commented Jan 24, 2025

Should actions/upload-pages-artifact be bumped to v3? The upload-artifact action seems to be triggered from there as per https://github.com/actions/upload-pages-artifact/blob/2d163be3ddce01512f3eea7ac5b7023b5d643ce1/action.yml#L78

@cburroughs
Copy link
Contributor Author

Whoops, yes I believe that is correct.

@@ -62,4 +62,4 @@ jobs:
path: "./build"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v3
Copy link
Member

Choose a reason for hiding this comment

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

The suggestion wasn't to use an older version of this action.

Suggested change
uses: actions/deploy-pages@v3
uses: actions/deploy-pages@v4

Instead, bump the version of actions/upload-pages-artifact on line 60.

@cburroughs cburroughs merged commit bf16833 into pantsbuild:main Jan 28, 2025
1 check passed
cburroughs added a commit that referenced this pull request Jan 28, 2025
This is followup to #311

Per
https://github.com/actions/upload-pages-artifact/releases/tag/v3.0.0
`actions/upload-pages-artifact@3` requires `actions/deploy-pages@v4`
cburroughs added a commit that referenced this pull request Jan 28, 2025
This is followup to #311

Per
https://github.com/actions/upload-pages-artifact/releases/tag/v3.0.0
`actions/upload-pages-artifact@3` requires `actions/deploy-pages@v4`
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.

3 participants