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

74 sudo commands #75

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/linux_build_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:
- name: Check Code Coverage
id: get_line_rate
run: |
report=$(find . -name "coverage.cobertura.xml")
report=$(sudo find . -name "coverage.cobertura.xml")
cp $report .
coverage=$(xmlstarlet sel -t -v '//coverage/@line-rate' coverage.cobertura.xml)
covPercent=$(echo "$coverage * 100" | bc -l)
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
if [ "${{ env.workdir }}" != '.' ]; then
badgeKey="${{ github.repository }}/${{ env.workdir }}|${{ github.ref_name }}"
fi
pathToCoverageFile=$(find . -name "coverage.cobertura.xml")
pathToCoverageFile=$(sudo find . -name "coverage.cobertura.xml")
mv $pathToCoverageFile .
coverage=$(xmlstarlet sel -t -v '//coverage/@line-rate' coverage.cobertura.xml)
covPercent=$(echo "$coverage * 100" | bc -l)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linux_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ jobs:
- name: Check Code Coverage
id: get_line_rate
run: |
report=$(find . -name "coverage.cobertura.xml")
report=$(sudo find . -name "coverage.cobertura.xml")
cp $report .
coverage=$(xmlstarlet sel -t -v '//coverage/@line-rate' coverage.cobertura.xml)
covPercent=$(echo "$coverage * 100" | bc -l)
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
if [ "${{ env.workdir }}" != '.' ]; then
badgeKey="${{ github.repository }}/${{ env.workdir }}|${{ github.ref_name }}"
fi
coverageReport=$(find . -name "coverage.cobertura.xml")
coverageReport=$(sudo find . -name "coverage.cobertura.xml")
mv $coverageReport .
coverage=$(xmlstarlet sel -t -v '//coverage/@line-rate' coverage.cobertura.xml)
covPercent=$(echo "$coverage * 100" | bc -l)
Expand All @@ -260,5 +260,5 @@ jobs:
NUGET_AUTH_TOKEN: ${{ secrets.test_feed_api_key }}
# Push the package to the test feed
- name: Push NuGet package(s) to the test feed
run: dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.test_feed_api_key }} --source ${{ env.azure_artifacts_feed_url }} --skip-duplicate
run: sudo dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.test_feed_api_key }} --source ${{ env.azure_artifacts_feed_url }} --skip-duplicate
working-directory: "${{ env.workdir }}"