Skip to content

Commit

Permalink
add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
terri1102 committed Jul 26, 2024
1 parent 1e1fde5 commit 314d479
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Capture Pushed File Path

on:
push:
paths:
- '**/*'

jobs:
capture-path:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up jq
run: sudo apt-get install -y jq

- name: Get pushed file paths
id: get-paths
run: |
FILES=$(jq -r '.commits[].added[], .commits[].modified[]' < "$GITHUB_EVENT_PATH")
echo "FILES=$FILES" >> $GITHUB_ENV
- name: Print file paths
run: |
echo "Pushed file paths: ${{ env.FILES }}"
- name: Pass file paths to function
run: |
for file in ${{ env.FILES }}; do
echo "Processing file: $file"
# Call your function here, for example:
# ./your-function.sh "$file"
done
12 changes: 6 additions & 6 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# name: Update README
#

# on:
# push:
# paths:
# - '**.py'
#

# jobs:
# update-readme:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
#

# - name: Set up Python
# uses: actions/setup-python@v3
# with:
# python-version: '3.x'
#

# - name: Install requirements
# run: |
# python -m pip install --upgrade pip
# pip install requests beautifulsoup4
#

# - name: Run README updater script
# run: python scripts/update_readme.py
#

# - name: Commit changes
# run: |
# git config --global user.name 'github-actions[bot]'
Expand Down
Empty file.

0 comments on commit 314d479

Please sign in to comment.