nuclei-templates/.github/workflows/wordpress-plugins-update.yml

35 lines
909 B
YAML
Raw Normal View History

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