mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 08:30:48 +00:00
Update the workflow for Markdown generation
Update the this workflow to reflect that now individual Markdown files are generated instead of a single file. This includes renaming the workflow file, adjusting some step names, and tweaking some other aspects.
This commit is contained in:
parent
acce4c2197
commit
84ca8ff082
1 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
name: Update the software list
|
name: Update the software lists
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -8,7 +8,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PIP_CACHE_DIR: ~/.cache/pip
|
PIP_CACHE_DIR: ~/.cache/pip
|
||||||
TESTING_BRANCH_BASE: testing/update_software_list
|
TESTING_BRANCH_BASE: testing/update_software_lists
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
|
@ -34,12 +34,12 @@ jobs:
|
||||||
env:
|
env:
|
||||||
BASE_BRANCH: ${{ env.TESTING_BRANCH_BASE }}
|
BASE_BRANCH: ${{ env.TESTING_BRANCH_BASE }}
|
||||||
COMMIT_SHA: ${{ github.sha }}
|
COMMIT_SHA: ${{ github.sha }}
|
||||||
generate_list_update:
|
generate_updates:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
outputs:
|
outputs:
|
||||||
# If changes are detected then a commit will have been pushed
|
# If changes are detected then a commit will have been pushed
|
||||||
updated_list: ${{ steps.commit-for-testing.outputs.changes_detected }}
|
has_updates: ${{ steps.commit-for-testing.outputs.changes_detected }}
|
||||||
# Don't run if we're seeing an update push
|
# Don't run if we're seeing an update push
|
||||||
if: github.actor != needs.setup.outputs.git_user
|
if: github.actor != needs.setup.outputs.git_user
|
||||||
steps:
|
steps:
|
||||||
|
@ -58,7 +58,7 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
${{ env.PIP_CACHE_DIR }}
|
${{ env.PIP_CACHE_DIR }}
|
||||||
key: "${{ env.BASE_CACHE_KEY }}\
|
key: "${{ env.BASE_CACHE_KEY }}\
|
||||||
${{ hashFiles('.github/workflows/update_software_list.yml') }}-\
|
${{ hashFiles('.github/workflows/update_software_lists.yml') }}-\
|
||||||
${{ hashFiles('config/requirements.txt') }}"
|
${{ hashFiles('config/requirements.txt') }}"
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ env.BASE_CACHE_KEY }}
|
${{ env.BASE_CACHE_KEY }}
|
||||||
|
@ -79,12 +79,12 @@ jobs:
|
||||||
commit_user_email: ${{ needs.setup.outputs.git_email }}
|
commit_user_email: ${{ needs.setup.outputs.git_email }}
|
||||||
commit_author: ${{ needs.setup.outputs.git_author }}
|
commit_author: ${{ needs.setup.outputs.git_author }}
|
||||||
file_pattern: data/cisagov*.yml software_lists/software_list_*.md
|
file_pattern: data/cisagov*.yml software_lists/software_list_*.md
|
||||||
merge_list_update:
|
merge_updates:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
- generate_list_update
|
- generate_updates
|
||||||
if: needs.generate_list_update.outputs.updated_list == 'true'
|
if: needs.generate_updates.outputs.has_updates == 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
Loading…
Reference in a new issue