ci: pull on specific ref (#10500)

Signed-off-by: Dwi Siswanto <git@dw1.io>
main
Dwi Siswanto 2024-08-09 06:49:33 +07:00 committed by GitHub
parent 97e5d760f8
commit a0fcc7b305
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 10 deletions

View File

@ -27,5 +27,5 @@ jobs:
message: 'chore: generate CVEs metadata 🤖'
- name: Push changes
run: |
git pull --rebase
git pull origin $GITHUB_REF --rebase
git push origin $GITHUB_REF

View File

@ -30,7 +30,9 @@ jobs:
with:
files: '${{ env.NEW_ADDITION_FILE }}'
message: 'chore: generate new addition list 🤖'
- run: git push origin $GITHUB_REF
- run: |
git pull origin $GITHUB_REF --rebase
git push origin $GITHUB_REF
sync:
needs: new-addition

View File

@ -17,8 +17,6 @@ jobs:
if: github.repository == 'projectdiscovery/nuclei-templates'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: projectdiscovery/actions/generate/checksum@v1
with:
templates-directory: '${{ github.workspace }}'
@ -30,5 +28,5 @@ jobs:
message: 'chore: generate templates checksum 🤖'
- name: Push changes
run: |
git pull --rebase
git pull origin $GITHUB_REF --rebase
git push origin $GITHUB_REF

View File

@ -28,5 +28,5 @@ jobs:
message: 'chore: sign templates 🤖'
- name: Push changes
run: |
git pull --rebase
git push origin ${{ github.ref }}
git pull origin $GITHUB_REF --rebase
git push origin $GITHUB_REF

View File

@ -9,8 +9,6 @@ jobs:
if: github.repository == 'projectdiscovery/nuclei-templates'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: projectdiscovery/actions/setup/templateman@v1
with:
token: '${{ secrets.ACCESS_TOKEN }}'
@ -21,5 +19,5 @@ jobs:
message: 'chore: update TemplateMan 🤖'
- name: Push changes
run: |
git pull --rebase
git pull origin $GITHUB_REF --rebase
git push origin $GITHUB_REF