Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sivan22 authored Nov 6, 2024
1 parent 88d9db1 commit 811bf22
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/update-files-manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update Files Manifest

on:
push:
branches:
- main
- master
workflow_dispatch:

jobs:
update-manifest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Generate Files Manifest
run: |
echo "# Files Manifest - Last Updated: $(date -u '+%Y-%m-%d %H:%M:%S UTC')" > files_manifest.json
find . -type f \
! -path "./.git/*" \
! -path "./.github/*" \
! -name "files_manifest.json" \
-exec stat --format='{"%n": {"modified": "%y"}},' {} \; | \
sed '$ s/,$//' | \
(echo "{" && cat && echo "}") > files_manifest.json
- name: Commit and Push Manifest
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add files_manifest.json
git commit -m "Update files manifest" || exit 0
git push

0 comments on commit 811bf22

Please sign in to comment.