Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .github/workflows/refresh-vuln-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ jobs:

- name: Create branch + commit
if: steps.changes.outputs.has_changes == 'true'
env:
NEW_ENTRIES: ${{ steps.refresh.outputs.new_entries }}
COUNT_BEFORE: ${{ steps.pre.outputs.count_before }}
COUNT_AFTER: ${{ steps.post.outputs.count_after }}
DATE_BEFORE: ${{ steps.pre.outputs.date_before }}
DATE_AFTER: ${{ steps.post.outputs.date_after }}
run: |
# Branch name includes the date so monthly runs don't conflict
# if a previous PR is still open.
Expand Down Expand Up @@ -152,17 +158,15 @@ jobs:
-m "Workflow: .github/workflows/refresh-vuln-db.yml" \
-m "Co-authored-by: Wolfvin <wolfvin@users.noreply.github.com>"

env:
NEW_ENTRIES: ${{ steps.refresh.outputs.new_entries }}
COUNT_BEFORE: ${{ steps.pre.outputs.count_before }}
COUNT_AFTER: ${{ steps.post.outputs.count_after }}
DATE_BEFORE: ${{ steps.pre.outputs.date_before }}
DATE_AFTER: ${{ steps.post.outputs.date_after }}

- name: Push branch + create PR
if: steps.changes.outputs.has_changes == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEW_ENTRIES: ${{ steps.refresh.outputs.new_entries }}
COUNT_BEFORE: ${{ steps.pre.outputs.count_before }}
COUNT_AFTER: ${{ steps.post.outputs.count_after }}
DATE_BEFORE: ${{ steps.pre.outputs.date_before }}
DATE_AFTER: ${{ steps.post.outputs.date_after }}
run: |
git push --set-upstream origin "$BRANCH"

Expand Down Expand Up @@ -211,12 +215,6 @@ jobs:
--label "automated"

echo "PR created successfully."
env:
NEW_ENTRIES: ${{ steps.refresh.outputs.new_entries }}
COUNT_BEFORE: ${{ steps.pre.outputs.count_before }}
COUNT_AFTER: ${{ steps.post.outputs.count_after }}
DATE_BEFORE: ${{ steps.pre.outputs.date_before }}
DATE_AFTER: ${{ steps.post.outputs.date_after }}

- name: Summary
if: always()
Expand Down
Loading