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

hack #5

Open
wants to merge 8 commits into
base: master
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
6 changes: 5 additions & 1 deletion .ci/diff-report.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -x

source ./.ci/util.sh

Expand All @@ -14,12 +15,15 @@ download-files)
LINK="${LINK_FROM_PR:-$DEFAULT_PROJECTS_LINK}"

# get projects file
curl --fail-with-body -X GET "${LINK}" \
echo "LINK: $LINK"
curl -vv --fail-with-body "$LINK" \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token $GITHUB_TOKEN" \
-o ../project.properties


if [ -n "$NEW_MODULE_CONFIG_LINK" ]; then
echo "NEW_MODULE_CONFIG_LINK: $NEW_MODULE_CONFIG_LINK"
curl --fail-with-body -X GET "${NEW_MODULE_CONFIG_LINK}" \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token $GITHUB_TOKEN" \
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/diff-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: ${{ env.USER_LOGIN }}/checkstyle
ref: master
ref: fix-diff-report
path: checkstyle
fetch-depth: 0

Expand All @@ -137,6 +137,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd checkstyle
echo "This is a test"
echo ""
echo $(curl --version)
./.ci/diff-report.sh download-files
cd ../

Expand Down