Skip to content

RSS Feed Generator #495

RSS Feed Generator

RSS Feed Generator #495

Workflow file for this run

name: RSS Feed Generator
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
today:
type: string
required: false
description: 'date(YYYY-MM-DD) for end of support check'
jobs:
rssgen:
runs-on: ubuntu-latest
permissions:
packages: read
pages: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
env:
OWNER: ${{ github.repository_owner }}
- name: Pull Docker Image
run: |
docker pull ghcr.io/contrast-security-oss/contrast-documentation-rss/python3:latest
- name: Generate RSS by Python
run: |
docker compose run python3 python java_rlsnote.py
docker compose run python3 python dotnet_framework_rlsnote.py
docker compose run python3 python dotnet_core_rlsnote.py
docker compose run python3 python nodejs_rlsnote.py
docker compose run python3 python nodejs_beta_rlsnote.py
docker compose run python3 python nodejs_protect_rlsnote.py
docker compose run python3 python go_rlsnote.py
docker compose run python3 python python_rlsnote.py
docker compose run python3 python ruby_rlsnote.py
docker compose run python3 python php_rlsnote.py
docker compose run python3 python contrast_rlsnote_saas.py
docker compose run python3 python contrast_rlsnote_eop.py
docker compose run python3 python java_support_tech.py
docker compose run python3 python dotnet_framework_support_tech.py
docker compose run python3 python dotnet_core_support_tech.py
docker compose run python3 python nodejs_support_tech.py
docker compose run python3 python go_support_tech.py
docker compose run python3 python python_support_tech.py
docker compose run python3 python ruby_support_tech.py
docker compose run python3 python php_support_tech.py
docker compose run -e TODAY=${{ github.event.inputs.today }} python3 python agent_end_support_chk.py
- name: Commit updated files
run: |
git config core.filemode false
if ! git diff --exit-code --quiet ./files
then
git config user.name Taka Shiozaki
git config user.email [email protected]
git commit -m "Commit updated files" ./files/*.txt
git push
fi
- uses: actions/upload-artifact@v4
with:
name: rss_feeds
path: feeds
- uses: actions/upload-pages-artifact@v3
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@v4
id: deployment