mirror of
https://github.com/projectdiscovery/nuclei
synced 2026-06-08 16:50:47 +00:00
31 lines
873 B
YAML
31 lines
873 B
YAML
name: 💾 Memoize Functions
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
paths:
|
|
- 'pkg/js/libs/**'
|
|
- 'cmd/memogen/**'
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
memogen:
|
|
if: ${{ github.repository == 'projectdiscovery/nuclei' && !endsWith(github.actor, '[bot]') }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: projectdiscovery/actions/setup/go@v1
|
|
- uses: projectdiscovery/actions/setup/git@v1
|
|
- run: make memogen
|
|
- run: git status -s | wc -l | xargs -I {} echo CHANGES={} >> $GITHUB_OUTPUT
|
|
id: status
|
|
- uses: projectdiscovery/actions/commit@v1
|
|
if: steps.status.outputs.CHANGES > 0
|
|
with:
|
|
files: |
|
|
pkg/js/libs/
|
|
message: 'chore(js): update memoized functions 🤖'
|
|
- run: git push origin $GITHUB_REF
|
|
if: steps.status.outputs.CHANGES > 0
|