NppCommunityAudit #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: NppCommunityAudit | |
| on: | |
| # schedule uses cron syntax: | |
| # 16:00 UTC (8:00am PST) on 6=Saturday | |
| schedule: | |
| - cron: "0 16 * * 6" | |
| # allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Audit and Clean Notepad++ Community Forum | |
| runs-on: windows-latest | |
| steps: | |
| - name: 🚚 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 📡 Install Perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: '5.40' | |
| - name: 🔧 Install Prerequisites | |
| run: | | |
| cpanm Exporter Data::Dump HTTP::Tiny JSON | |
| - name: 🔨 Clean Topics & Posts | |
| working-directory: ./CommunityForum/.perl | |
| env: | |
| NPPCOMM_TOKEN: ${{ secrets.NPPCOMM_TOKEN }} | |
| run: perl topicAudit.pl | |
| - name: 🔥 Clean Users | |
| working-directory: ./CommunityForum/.perl | |
| env: | |
| NPPCOMM_TOKEN: ${{ secrets.NPPCOMM_TOKEN }} | |
| run: perl userAudit.pl |