Skip to content

Update Public Suffix List #901

Update Public Suffix List

Update Public Suffix List #901

name: Update Public Suffix List
on:
schedule:
- cron: '0 10 * * *'
env:
LC_ALL: "en_US.UTF-8"
jobs:
update-psl:
if: github.repository == 'line/armeria'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: setup-jdk-17
name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Restore Gradle Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/wrapper/dists
~/.gradle/caches/jars-3
~/.gradle/caches/modules-2
~/.gradle/caches/package-lists
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: |
./gradlew --no-daemon --stacktrace :core:publicSuffixes
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSWORD }}
git-user-signingkey: true
git-commit-gpgsign: true
- name: Push updated public suffix list
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_options: '-S'
commit_message: Update public suffix list
file_pattern: core/src/main/resources/com/linecorp/armeria/public_suffixes.txt
commit_user_name: Meri Kim
commit_user_email: [email protected]
commit_author: Meri Kim <[email protected]>
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock || true
rm -f ~/.gradle/caches/modules-2/gc.properties || true
shell: bash