-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (63 loc) · 2.09 KB
/
rss.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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 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 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.py
docker-compose run python3 python java_support_tech.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
git push
fi
- 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