Skip to content

Conversation

@Riges
Copy link
Owner

@Riges Riges commented Apr 9, 2025

Refactor the CI workflow to utilize environment variables for versioning, replace deprecated actions, and split the testing workflow for better clarity and maintainability.

@Riges Riges requested a review from Copilot April 9, 2025 11:35
Copy link
Contributor

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.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

.github/workflows/ci.yml:46

  • Ensure that GITHUB_REF is always long enough to extract the tag correctly as intended. A guard or a more robust extraction method might prevent generating an empty TAG value if GITHUB_REF is unexpectedly short.
echo "TAG=${GITHUB_REF:10}" >> $GITHUB_ENV

.github/workflows/ci.yml:69

  • Confirm that the TAG environment variable is reliably available in the shell context to ensure the correct package version is used during the push. If TAG is missing or empty, the package push could fail or use an incorrect version.
run: dotnet nuget push src/Netatmo/bin/Release/Netatmo.$TAG.nupkg -k ${{ secrets.NUGET_ORG_KEY }} -s https://api.nuget.org/v3/index.json

@Riges Riges merged commit af0a091 into master Apr 9, 2025
5 checks passed
@Riges Riges deleted the feature/github_action_refacto branch April 9, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants