-
Notifications
You must be signed in to change notification settings - Fork 218
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
CI: Pin actions/upload-artifact and peter-evans/slash-command-dispatch to the latest tag #3431
Conversation
…h to the latest tag
with: | ||
name: gmt-cache | ||
include-hidden-files: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In v4.4.0, include-hidden-files
is false
by default. Here we set it to true
.
The workflow runs as expected: https://github.com/GenericMappingTools/pygmt/actions/runs/10769413727?pr=3431
@@ -14,7 +14,7 @@ jobs: | |||
runs-on: ubuntu-latest | |||
steps: | |||
- name: Slash Command Dispatch | |||
uses: peter-evans/slash-command-dispatch@v4 | |||
uses: peter-evans/slash-command-dispatch@v4.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description of proposed changes
The actions/upload-artifact v4.4.0 introduced a breaking change, which excludes hidden files by default. This new version breaks the workflow in one of my repositories (here is the workflow run https://github.com/gmt-china/GMT_docs/actions/runs/10759759418 if you're interested). The new version should also affect our "Cache Data" workflow, since we upload the files in
~/.gmt
, but actually the workflow is not affected (likely because we run it under macOS).Anyway, it's always a good idea to pin actions to a specific tag so that workflows won't break suddenly due to upstream changes.