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

CI: Pin actions/upload-artifact and peter-evans/slash-command-dispatch to the latest tag #3431

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

seisman
Copy link
Member

@seisman seisman commented Sep 9, 2024

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.

@seisman seisman added maintenance Boring but important stuff for the core devs needs review This PR has higher priority and needs review. skip-changelog Skip adding Pull Request to changelog labels Sep 9, 2024
@seisman seisman added this to the 0.14.0 milestone Sep 9, 2024
with:
name: gmt-cache
include-hidden-files: true
Copy link
Member Author

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
Copy link
Member Author

Choose a reason for hiding this comment

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

@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Sep 9, 2024
@seisman seisman merged commit a98ca97 into main Sep 10, 2024
17 checks passed
@seisman seisman deleted the ci/pin-actions branch September 10, 2024 01:39
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants