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

fix: accept expired artifacts with documentation url #283

Merged
merged 1 commit into from Mar 18, 2024

Conversation

wdconinc
Copy link
Contributor

It seems that, recently, GitHub has started to return the expired artifact error along with a URL with more documentation. This leads to the equality error condition not being satisfied, and the error to be thrown even when the settings ask for errors to be ignored:

Run dawidd6/action-download-artifact@v3
==> Repository: eic/EICrecon
==> Artifact name: docs
==> Local path: publishing_docs/pr/1161/
==> Workflow name: .github/workflows/linux-eic-shell.yml
==> Workflow conclusion: completed
==> Commit: 1705fd8d88312862289bb[27](https://github.com/eic/EICrecon/actions/runs/8314077495/job/22751039311#step:2:28)e8b0642be22104362
==> Allow forks: true
==> (found) Run ID: 7040574340
==> (found) Run date: 2023-11-[30](https://github.com/eic/EICrecon/actions/runs/8314077495/job/22751039311#step:2:31)T01:04:01Z
==> Artifact: 1082417363
==> Downloading: docs.zip (10.92 MB)
Error: Artifact has expired - https://docs.github.com/rest/actions/artifacts#download-an-artifact

(followed by failed pipeline).

This PR changes the expiration error message to only require the error message to start with "Artifact has expired" and allowing additional text. With this PR, the above pipeline does not return with an error but just ignores the expiration error as intended.

@dawidd6
Copy link
Owner

dawidd6 commented Mar 18, 2024

Very nice, thanks!

@dawidd6 dawidd6 merged commit 09f2f74 into dawidd6:master Mar 18, 2024
17 checks passed
@wdconinc wdconinc deleted the expiration branch March 18, 2024 14:42
kodiakhq bot added a commit to weareinreach/TransMascFutures that referenced this pull request Mar 20, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/cache](https://togithub.com/actions/cache) | action | digest | `ab5e6d0` -> `0c45773` |
| [chromaui/action](https://togithub.com/chromaui/action) | action | digest | `306092d` -> `da24ada` |
| [dawidd6/action-download-artifact](https://togithub.com/dawidd6/action-download-artifact) | action | patch | `v3.1.2` -> `v3.1.4` |
| [github/codeql-action](https://togithub.com/github/codeql-action) | action | digest | `3ab4101` -> `05963f4` |

---

### Release Notes

<details>
<summary>dawidd6/action-download-artifact (dawidd6/action-download-artifact)</summary>

### [`v3.1.4`](https://togithub.com/dawidd6/action-download-artifact/releases/tag/v3.1.4)

[Compare Source](https://togithub.com/dawidd6/action-download-artifact/compare/v3.1.3...v3.1.4)

#### What's Changed

-   build(deps): bump adm-zip from 0.5.10 to 0.5.12 by [@&#8203;dependabot](https://togithub.com/dependabot) in [dawidd6/action-download-artifact#282
-   build(deps): bump [@&#8203;actions/artifact](https://togithub.com/actions/artifact) from 2.1.2 to 2.1.4 by [@&#8203;dependabot](https://togithub.com/dependabot) in [dawidd6/action-download-artifact#280
-   fix: accept expired artifacts with documentation url by [@&#8203;wdconinc](https://togithub.com/wdconinc) in [dawidd6/action-download-artifact#283

#### New Contributors

-   [@&#8203;wdconinc](https://togithub.com/wdconinc) made their first contribution in [dawidd6/action-download-artifact#283

**Full Changelog**: dawidd6/action-download-artifact@v3...v3.1.4

### [`v3.1.3`](https://togithub.com/dawidd6/action-download-artifact/releases/tag/v3.1.3)

[Compare Source](https://togithub.com/dawidd6/action-download-artifact/compare/v3.1.2...v3.1.3)

#### What's Changed

-   node_modules: upgrade by [@&#8203;dawidd6](https://togithub.com/dawidd6) in [dawidd6/action-download-artifact#276
-   build(deps): bump [@&#8203;actions/artifact](https://togithub.com/actions/artifact) from 2.1.1 to 2.1.2 by [@&#8203;dependabot](https://togithub.com/dependabot) in [dawidd6/action-download-artifact#277

**Full Changelog**: dawidd6/action-download-artifact@v3.1.2...v3.1.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday,before 4am on Thursday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/weareinreach/GLAAD).



PR-URL: #364
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

2 participants