Skip to content

Commit

Permalink
Enhanced code to clean and added files
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Maciel Costa <richardmaciel@gmail.com>
  • Loading branch information
DeafBDoor committed Oct 14, 2024
1 parent a3dbd4b commit 6cf236a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/clean_for_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,30 @@ on:
jobs:
Clean-and-tag:
runs-on: ubuntu-latest
outputs:
version_tag: ${{ inputs.version_tag }}
env:
CLEAN_FILES: |
"Area Supervisors"
"Email List Archives"
"OVAL-Board"
"guidelines"
"tools"
".gitignore"
"README.md"
"readthedocs.yaml"
"terms-of-use.rst"
".github"
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Change to release branch
run: git checkout -b "releases/${{ inputs.version_tag }}"
- name: Delete undesired directories
run: rm -rf 'Area Supervisors' 'Email List Archives' 'OVAL-Board' 'guidelines'
run: |
readarray -t clean_files <<< "${CLEAN_FILES}"
for it in "${clean_files[@]}"; do
echo "Removing ${it}"
rm -rf "${it}"
done
- name: List files in the repository
run: |
ls ${{ github.workspace }}
Expand Down

0 comments on commit 6cf236a

Please sign in to comment.