diff --git a/.editorconfig b/.editorconfig index 53dfe17..4ffe7ab 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,6 +8,9 @@ indent_size=4 [*.json] indent_size=2 +[*.yml] +indent_size=2 + [*.{kt,kts}] disabled_rules=import-ordering,no-wildcard-imports max_line_length=177 diff --git a/.github/workflows/refresh-cache.yml b/.github/workflows/refresh-cache.yml new file mode 100644 index 0000000..164ce76 --- /dev/null +++ b/.github/workflows/refresh-cache.yml @@ -0,0 +1,20 @@ +name: Purge cloudflare cache + +on: deployment_status + +jobs: + publish: + if: github.event.deployment_status.state == 'success' + runs-on: ubuntu-latest + steps: + - name: "Call API" + uses: indiesdev/curl@v1.1 + with: + method: "POST" + url: https://api.cloudflare.com/client/v4/zones/0dd93531047ba376c2a1167f841c2bfd/purge_cache + headers: ${{ secrets.custom_headers }} + bearer-token: ${{ secrets.bearer_token }} + body: '{"files": ["https://messages.wulkanowy.net.pl/", "https://messages.wulkanowy.net.pl/v1.json"]}' + accept: 200 + log-response: false + retries: 3 diff --git a/.gitignore b/.gitignore index 1d4a4cd..b8b688d 100644 --- a/.gitignore +++ b/.gitignore @@ -74,3 +74,5 @@ classes .idea/libraries-with-intellij-classes.xml dist/ !dist/favicon.ico +.idea/jsonSchemas.xml +.idea/kotlinc.xml diff --git a/.idea/gradle.xml b/.idea/gradle.xml index c132b63..dc4d35c 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,8 +4,11 @@ - + \ No newline at end of file