Skip to content

Commit

Permalink
Test commit to generate changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Nov 1, 2024
1 parent d90d900 commit 3400cb9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci-build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,22 @@ jobs:
PASTEBIN_API_KEY: ${{ secrets.PASTEBIN_API_KEY }}
id: create-pastebin
run: |
diff_content=$(cat changes.diff)
# Use a URL-encoded paste name to handle special characters
paste_name=$(echo "radio-t.com Site Changes for PR #${{ github.event.pull_request.number }}, commit ${{ github.sha }}" | jq -sRr @uri)
# Post the diff file directly from changes.diff
# https://pastebin.com/doc_api
paste_output=$(curl --silent "https://pastebin.com/api/api_post.php" \
-d "api_dev_key=$PASTEBIN_API_KEY" \
-d "api_option=paste" \
-d "api_paste_expire_date=1M" \
-d "api_paste_format=diff" \
-d "api_paste_private=0" \
-d "api_paste_code=${diff_content}" \
-d "api_paste_name=radio-t.com Site Changes for PR #${{ github.event.pull_request.number }}, commit ${{ github.sha }}")
# Check if the output is a valid URL, otherwise print error
if [[ "$paste_url" == "https://"* ]]; then
-d "api_paste_name=${paste_name}" \
--data-urlencode "[email protected]" || echo "curl call to pastebin failed")
# Check if the output is a valid URL, otherwise print an error
if [[ "$paste_output" == "https://"* ]]; then
echo "PASTE_URL=$paste_output" >> $GITHUB_ENV
else
echo "Error: Failed to create Pastebin paste: $paste_output" >&2
Expand Down
2 changes: 1 addition & 1 deletion hugo/.size-limit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = [
{
path: 'static/build/app.js',
limit: '16 KB',
limit: '17 KB',
},
{
path: 'static/build/manifest.js',
Expand Down
2 changes: 1 addition & 1 deletion hugo/src/scss/_archives.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
content: '';
position: absolute;
bottom: 0;
left: $grid-gutter-width / 2;
left: $grid-gutter-width * 0.3;
right: $grid-gutter-width / 2;
height: 1px;
background-color: $border-color;
Expand Down

0 comments on commit 3400cb9

Please sign in to comment.