Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Dev into Main #207

Merged
merged 29 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7e56765
Added new workflow for generating checklist pdfs when changes are mad…
natalialuzuriaga Oct 29, 2024
6fefa9f
updated comments
natalialuzuriaga Oct 29, 2024
9dc4ea8
fixed multi-select fields formatting and fixed broken link
sachin-panayil Oct 31, 2024
e5af8ae
Merge pull request #197 from DSACMS/sachin/bug-fixes
sachin-panayil Nov 1, 2024
cde21c5
defined number of parallel jobs
natalialuzuriaga Nov 4, 2024
52c811c
Deleted checklist.pdf and edit checklist.md to generate new pdfs
natalialuzuriaga Nov 4, 2024
6ce6060
Updated tier1 checklist pdf
natalialuzuriaga Nov 4, 2024
a58527e
Updated tier2 checklist pdf
natalialuzuriaga Nov 4, 2024
0e6ccc0
Updated tier3 checklist pdf
natalialuzuriaga Nov 4, 2024
fce0b7d
Updated tier4 checklist pdf
natalialuzuriaga Nov 4, 2024
d73de01
Updated cookiecutter version
natalialuzuriaga Nov 5, 2024
239e89a
Created README.md for tier0 and updated README.md template
natalialuzuriaga Nov 5, 2024
04cbbc2
Update checks.yml
natalialuzuriaga Nov 6, 2024
6a8221c
Merge pull request #191 from DSACMS/nat/checklist-pdf-workflow
natalialuzuriaga Nov 7, 2024
e6d8d56
Merge pull request #200 from DSACMS/nat/tier0-update
natalialuzuriaga Nov 7, 2024
ba98946
Added SECURITY.md to Tier 0 as recommended
natalialuzuriaga Nov 7, 2024
b08ab48
Updated location of SECURITY.md
natalialuzuriaga Nov 7, 2024
216f0dd
fixed labor hours calculations
sachin-panayil Nov 7, 2024
33fa6a5
Merge pull request #202 from DSACMS/nat/tier0-security
natalialuzuriaga Nov 7, 2024
6ee6ea4
Merge pull request #199 from DSACMS/nat/cc-update
natalialuzuriaga Nov 7, 2024
1dd1880
labor hours fixes
sachin-panayil Nov 8, 2024
c7463e0
changed description to a TODO
sachin-panayil Nov 12, 2024
9f930cc
Merge pull request #204 from DSACMS/sachin/labor-hours-new
sachin-panayil Nov 12, 2024
b5eda14
added more modularity
sachin-panayil Nov 12, 2024
b09a16a
changed to include specifc files
sachin-panayil Nov 13, 2024
9ec90ea
Merge pull request #203 from DSACMS/sachin/labor-hours-calculation-fix
sachin-panayil Nov 15, 2024
c81e048
Added use of pydash to merge rulesets of tiers
natalialuzuriaga Nov 18, 2024
ba67649
Merge pull request #206 from DSACMS/nat/extends-json
natalialuzuriaga Nov 18, 2024
29f9b3a
Update checklistMarkdownToPDF.yml
natalialuzuriaga Nov 18, 2024
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
66 changes: 66 additions & 0 deletions .github/workflows/checklistMarkdownToPDF.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Converting outbound checklists from .md to .pdf
on:
pull_request:
types: [opened, synchronize]
# Paths can be used to only trigger actions when you have edited checklist files
paths:
- 'tier*/checklist.md'

jobs:
get-changed-directories:
name: Get changed directories
runs-on: ubuntu-latest
outputs:
tiers: ${{ steps.list-dirs.outputs.tiers }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Get changed directories
id: get-dirs
uses: tj-actions/changed-files@v45
with:
dir_names: "true"
- name: List all changed tier directories
id: list-dirs
env:
ALL_CHANGED_FILES: ${{ steps.get-dirs.outputs.all_changed_files }}
run: |
# Obtain changed tier directories and format into array
DIRS=$(echo "$ALL_CHANGED_FILES" | grep -oE 'tier[^ ]*' | sed 's/^/"/; s/$/"/' | paste -sd, -)

# Output the array
TIER_DIRS="[$DIRS]"
echo "$TIER_DIRS"

echo "tiers=$TIER_DIRS" >> "$GITHUB_OUTPUT"

convert-to-pdf:
name: Build PDF
runs-on: ubuntu-latest
needs: get-changed-directories
permissions:
contents: write
strategy:
max-parallel: 1
matrix:
tier: ${{ fromJSON(needs.get-changed-directories.outputs.tiers) }} # List of changed tier directories
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Generate PDF for ${{ matrix.tier }}
uses: baileyjm02/markdown-to-pdf@v1
with:
input_path: ${{ matrix.tier }}/checklist.md
images_dir: assets
image_import: ../assets
output_dir: ${{ matrix.tier }}/
build_html: false
- name: Commit and push ${{ matrix.tier }} PDF
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Updated ${{ matrix.tier }} checklist pdf"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion tier1/checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ This is a review process to approve CMS-developed software to be released open s
[Flipping the Switch: Making the Repository Public](#flipping-the-switch-making-the-repository-public)



### State the Benefits of Open Sourcing the Project

- [ ] **Cost Savings**
Expand Down
Binary file modified tier1/checklist.pdf
Binary file not shown.
4 changes: 1 addition & 3 deletions tier2/checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

### Instructions

This is a review process to approve CMS-developed software to be released open source at [github.cms.gov](https://github.cms.gov/).
If you would like your repository to be released, please complete the following steps.
This is a review process to approve CMS-developed software to be released open source at [github.cms.gov](https://github.cms.gov/). If you would like your repository to be released, please complete the following steps.

[Instructions](#instructions)

Expand Down Expand Up @@ -35,7 +34,6 @@ If you would like your repository to be released, please complete the following
[Flipping the Switch: Making the Repository Public](#flipping-the-switch-making-the-repository-public)



### State the Benefits of Open Sourcing the Project

- [ ] **Cost Savings**
Expand Down
Binary file modified tier2/checklist.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion tier3/checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ If you would like your repository to be released, please complete the following
[Flipping the Switch: Making the Repository Public](#flipping-the-switch-making-the-repository-public)



### State the Benefits of Open Sourcing the Project

- [ ] **Cost Savings**
Expand Down
Binary file modified tier3/checklist.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion tier4/checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ If you would like your repository to be released, please complete the following
[Flipping the Switch: Making the Repository Public](#flipping-the-switch-making-the-repository-public)



### State the Benefits of Open Sourcing the Project

- [ ] **Cost Savings**
Expand Down
Binary file modified tier4/checklist.pdf
Binary file not shown.