Skip to content

RSS Feed Generator

RSS Feed Generator #37

Workflow file for this run

name: RSS Feed Generator
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
rssgen:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${OWNER,,}
password: ${{ secrets.GHCR_PAT }}
env:
OWNER: ${{ github.repository_owner }}
- name: Pull Docker Image
run: |
docker pull ghcr.io/contrast-security-oss/contrast-documentation-rss/python3:1.0.1
- name: Generate RSS by Python
run: |
docker-compose run python3 python java_rlsnote.py
docker-compose run python3 python contrast_rlsnote.py
docker-compose run python3 python java_support_tech.py
- uses: actions/upload-artifact@v3
with:
name: rss_feeds
path: feeds
- uses: actions/upload-pages-artifact@v1
with:
path: feeds
deploy:
needs: rssgen
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- uses: actions/deploy-pages@v1
id: deployment