Skip to content

Create 1160_Find_Words_That_Can_Be_Formed_by_Characters.java #159

Create 1160_Find_Words_That_Can_Be_Formed_by_Characters.java

Create 1160_Find_Words_That_Can_Be_Formed_by_Characters.java #159

Workflow file for this run

name: Update Header
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@v35
with:
since_last_remote_commit: true
files: |
*.java
# !*.md
# test_directory
# **/*.sql
- name: Setting up the git user
run: |
git config --global user.name 'Muhammad Khuzaima Umair'
git config --global user.email 'mkhuzaima@users.noreply.github.com'
- name: Run for changed java files
run: |
for file in ${{ steps.changed-files-specific.outputs.all_changed_files }}; do
echo "$file was changed"
python .github/workflows/updateHeader.py $file
# create commit
git commit -am "Formatted $file" || echo "nothing to commit"
done
git push || echo "There is nothing to push"
# - name: Run step if only the files listed above change
# if: steps.changed-files-specific.outputs.only_changed == 'true'
# run: |
# echo "Only files listed above have changed."
# - name: Run step if any of the listed files above is deleted
# if: steps.changed-files-specific.outputs.any_deleted == 'true'
# run: |
# for file in ${{ steps.changed-files-specific.outputs.deleted_files }}; do
# echo "$file was deleted"
# done
# - name: Run step if all listed files above have been deleted
# if: steps.changed-files-specific.outputs.only_deleted == 'true'
# run: |
# for file in ${{ steps.changed-files-specific.outputs.deleted_files }}; do
# echo "$file was deleted"
# done