Skip to content

Aktualizacja listy #4488

Aktualizacja listy

Aktualizacja listy #4488

Workflow file for this run

name: Aktualizacja listy
on:
workflow_dispatch: null
schedule:
- cron: "0 8,12,16,20 * * *"
- cron: "15 0 * * 0"
jobs:
CERT_LWS:
runs-on: ubuntu-latest
container: ghcr.io/filtersheroes/kad_image:3.0.12
steps:
- uses: actions/checkout@v4
- name: Dodawanie nowości z CERT
run: |
./scripts/addNoveltiesFrom3p.py CERT
- name: Dodawanie nowości z LWS
run: |
./scripts/addNoveltiesFrom3p.py LWS
- uses: actions/upload-artifact@v4
with:
name: CERT
path: |
sections/CERT_novelties.txt
- uses: actions/upload-artifact@v4
with:
name: LWS
path: sections/LWS_novelties.txt
Aktualizacja:
needs: [CERT_LWS]
runs-on: ubuntu-latest
permissions:
contents: write
container: ghcr.io/filtersheroes/kad_image:3.0.12
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/download-artifact@v4
with:
name: CERT
path: sections
- uses: actions/download-artifact@v4
with:
name: LWS
path: sections
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_HELPER_ID }}
private-key: ${{ secrets.PRIVATE_APP_HELPER_KEY }}
owner: ${{ github.repository_owner }}
repositories: "KAD,KADhosts"
- name: Aktualizacja całej listy
env:
GIT_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
python3 ./scripts/build.py