Skip to content

chore(ci): set env var correctly on windows #355

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 3 commits into from
Jun 7, 2024
Merged

Conversation

mabaasit
Copy link
Collaborator

@mabaasit mabaasit commented Jun 7, 2024

Description

Open Questions

Checklist

Comment on lines 32 to 36
- name: Sets env vars
if: github.event_name == 'pull_request'
run: echo "SINCE_REF=remotes/origin/main" >> $GITHUB_ENV
run: |
echo "SINCE_REF=remotes/origin/main" >> $GITHUB_ENV # linux/mac
echo "SINCE_REF=remotes/origin/main" >> $env:GITHUB_ENV # windows
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure if i should split it based on the OS. Let me know what you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

probably that would be cleaner

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added in 97a6654

Copy link
Collaborator

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

Can we use shell: bash instead? That way we don't have to duplicate every nontrivial script in our GHA CI

@mabaasit
Copy link
Collaborator Author

mabaasit commented Jun 7, 2024

Can we use shell: bash instead? That way we don't have to duplicate every nontrivial script in our GHA CI

Did not know about this option. Its much cleaner :)

@mabaasit mabaasit merged commit 5e66e56 into main Jun 7, 2024
5 checks passed
@mabaasit mabaasit deleted the fix-gh-check-action branch June 7, 2024 12:51
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