8000 Update release.yaml by esparig · Pull Request #31 · grycap/oscar_python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update release.yaml #31

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

Merged
merged 1 commit into from
May 9, 2025
Merged

Update release.yaml #31

merged 1 commit into from
May 9, 2025

Conversation

esparig
Copy link
Member
@esparig esparig commented May 9, 2025

No description provided.

@esparig esparig requested a review from Copilot May 9, 2025 11:26
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the release workflow configuration to change how changes within the "oscar_python" directory are detected.

  • Replaces a git diff command with a git log command that uses date filters.
  • Introduces a PREV_MONTH variable to determine the date range for change detection.

@@ -31,7 +31,8 @@ jobs:
- name: Check for changes inside oscar_python directory
id: check_changes
run: |
if git diff --name-only HEAD~1 HEAD | grep -q '^oscar_python/'; then
PREV_MONTH=$(date -d "last month" +%Y-%m)
Copy link
Preview
Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

The use of 'date -d' may not be portable on all systems (e.g., macOS). Consider ensuring that the workflow always runs on a Linux environment or use a more portable date command.

Copilot uses AI. Check for mistakes.

Copy link
Member Author
@esparig esparig May 9, 2025

Choose a reason for hiding this comment

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

This is a GitHub Action that always runs on ubuntu:

runs-on: ubuntu-22.04

@esparig esparig merged commit 1553a0f into main May 9, 2025
1 check passed
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.

1 participant
0