2022-12-26 15:42:39 +00:00
|
|
|
name: ✨ WordPress Plugins - Update
|
2023-01-05 10:56:27 +00:00
|
|
|
|
2022-12-26 15:42:39 +00:00
|
|
|
on:
|
2024-04-19 07:39:24 +00:00
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
2023-01-05 10:56:27 +00:00
|
|
|
|
2022-12-26 15:42:39 +00:00
|
|
|
jobs:
|
|
|
|
Update:
|
|
|
|
runs-on: ubuntu-latest
|
2024-03-02 09:35:40 +00:00
|
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
2022-12-26 15:42:39 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
2023-09-12 10:36:40 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-12-26 15:42:39 +00:00
|
|
|
|
|
|
|
- name: Install Python3
|
2023-12-11 05:07:43 +00:00
|
|
|
uses: actions/setup-python@v5
|
2022-12-26 15:42:39 +00:00
|
|
|
with:
|
|
|
|
python-version: "3.10"
|
2024-09-02 06:34:44 +00:00
|
|
|
|
|
|
|
- run: python -m pip install --upgrade pip
|
|
|
|
- run: pip install -r .github/scripts/wordpress-plugins-update-requirements.txt
|
2022-12-26 15:42:39 +00:00
|
|
|
|
|
|
|
- name: Update Templates
|
2024-08-28 07:29:06 +00:00
|
|
|
run: python3 .github/scripts/wordpress-plugins-update.py
|
2022-12-26 15:42:39 +00:00
|
|
|
|
2024-08-28 07:29:06 +00:00
|
|
|
- uses: projectdiscovery/actions/setup/git@v1
|
2022-12-26 15:42:39 +00:00
|
|
|
|
2024-08-28 07:29:06 +00:00
|
|
|
- uses: projectdiscovery/actions/commit@v1
|
2022-12-26 15:42:39 +00:00
|
|
|
with:
|
2024-08-28 07:29:06 +00:00
|
|
|
files: '.'
|
|
|
|
message: 'chore: update WordPress Plugins 🤖'
|
|
|
|
|
2024-09-02 06:34:44 +00:00
|
|
|
- run: git pull origin $GITHUB_REF --rebase
|
2024-08-28 07:29:06 +00:00
|
|
|
- run: git push origin $GITHUB_REF
|