mirror of
https://github.com/0xMarcio/cve.git
synced 2026-10-27 16:51:03 +00:00
Add conditional GitHub sponsorship links
This commit is contained in:
1 parent
7e26e73310
commit
2eaf54df35
5 files changed
+30
-4
No files matched your search
@@ -0,0 +1 @@
|
||||
github: 0xMarcio
|
||||
@@ -38,6 +38,22 @@ jobs:
|
||||
- name: Build site data
|
||||
run: python3 scripts/build_site.py
|
||||
|
||||
- name: Check sponsorship availability
|
||||
timeout-minutes: 1
|
||||
continue-on-error: true
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
sponsor_enabled=false
|
||||
if sponsor_public=$(gh api graphql \
|
||||
-f query='query { user(login: "0xMarcio") { sponsorsListing { isPublic } } }' \
|
||||
--jq '.data.user.sponsorsListing.isPublic // false'); then
|
||||
if [ "$sponsor_public" = "true" ]; then
|
||||
sponsor_enabled=true
|
||||
fi
|
||||
fi
|
||||
echo "POCINDEX_SPONSORS_ENABLED=$sponsor_enabled" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Build homepage and CVE pages
|
||||
run: python3 scripts/build_pages.py
|
||||
|
||||
|
||||
Reference in new issue
Block a user