Skip to content

Commit

Permalink
fix: site config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs committed Oct 5, 2024
1 parent fb865a6 commit 04b7d61
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ jobs:

- name: Get last commit of coraza
id: coraza-latest-commit
run: echo "value=$(gh api repos/corazawaf/coraza/commits/main -q .sha)" >> $GITHUB_OUTPUT
run: |
echo "long=$(gh api repos/corazawaf/coraza/commits/main -q .sha)" >> $GITHUB_OUTPUT
echo "short=$(gh api repos/corazawaf/coraza/commits/main -q .sha | cut -c 1-8)" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Pull latest coraza
run: go get -u github.com/corazawaf/coraza/v3@${{ steps.coraza-latest-commit.outputs.value }}
run: go get -u github.com/corazawaf/coraza/v3@${{ steps.coraza-latest-commit.outputs.long }}

- name: Tests and coverage
run: go run mage.go test
Expand All @@ -53,15 +55,15 @@ jobs:
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }}
run: |
cat <<EOF > $GITHUB_STEP_SUMMARY
Changed files:
# Changed files:
$CHANGED_FILES
PR information:
commit-message: 'docs: upgrades coraza docs to ${{ steps.coraza-latest-commit.outputs.value }}'
branch: upgrades_coraza_${{ steps.coraza-latest-commit.outputs.value }}
title: 'docs: upgrades to latest coraza'
assignees: ${{ github.actor }}
body: This PR upgrades the docs to latest coraza commit namely ${{ steps.coraza-latest-commit.outputs.value }}
# PR information:
**commit-message**: docs: upgrades coraza docs to github.com/corazawaf/coraza/v3@${{ steps.coraza-latest-commit.outputs.short }}
**branch**: upgrades_coraza_${{ steps.coraza-latest-commit.outputs.short }}
**title**: docs: upgrades to latest coraza
**assignees**: ${{ github.actor }}
**body**: This PR upgrades the docs to latest coraza commit namely [`${{ steps.coraza-latest-commit.outputs.short }}`](https://github.com/corazawaf/coraza/tree/${{ steps.coraza-latest-commit.outputs.long }})
EOF
- name: Create Pull Request
Expand All @@ -70,13 +72,13 @@ jobs:
id: create-pr
with:
add-paths: content/docs
commit-message: 'docs: upgrades coraza docs to ${{ steps.coraza-latest-commit.outputs.value }}'
commit-message: 'docs: upgrades coraza docs to ${{ steps.coraza-latest-commit.outputs.short }}'
signoff: true
branch: upgrades_coraza_${{ steps.coraza-latest-commit.outputs.value }}
branch: upgrades_coraza_${{ steps.coraza-latest-commit.outputs.short }}
title: 'docs: upgrades to latest coraza'
assignees: ${{ github.actor }}
body: |
This PR upgrades the docs to latest coraza commit namely ${{ steps.coraza-latest-commit.outputs.value }}
This PR upgrades the docs to latest coraza commit namely [`${{ steps.coraza-latest-commit.outputs.short }}`](https://github.com/corazawaf/coraza/tree/${{ steps.coraza-latest-commit.outputs.long }})
- name: Check outputs
if: ${{ github.event_name != 'pull_request' && steps.create-pr.outputs.pull-request-number }}
Expand Down
2 changes: 1 addition & 1 deletion config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ enableEmoji = true
enableGitInfo = false
enableRobotsTXT = true
languageCode = "en-US"
paginate = 7
pagerSize = 7
rssLimit = 10

# add redirects/headers
Expand Down

0 comments on commit 04b7d61

Please sign in to comment.