Skip to content

Commit

Permalink
Bump tj-actions/changed-files from 34.5.3 to 35.1.1 (#503)
Browse files Browse the repository at this point in the history
* Bump tj-actions/changed-files from 34.5.3 to 35.1.1

Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 34.5.3 to 35.1.1.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](tj-actions/changed-files@v34.5.3...v35.1.1)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Improve license header check

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and fcollonval authored Jan 2, 2023
1 parent 16a9f4a commit 60367a9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-api-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Get API changes
id: api-changed
uses: tj-actions/changed-files@v34.5.3
uses: tj-actions/changed-files@v35.1.1
with:
base_sha: 'HEAD~1'
sha: 'HEAD'
Expand Down
37 changes: 20 additions & 17 deletions .github/workflows/license-header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,32 @@ jobs:
with:
mode: fix

- name: Apply Changes
- name: List files changed
id: files-changed
shell: bash -l {0}
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add *
git commit --allow-empty -m "Automatic application of license header"
set -ex
export CHANGES=$(git status --porcelain | tee modified.log | wc -l)
cat modified.log
# Remove the log otherwise it will be committed
rm modified.log
- name: Get modified files in the staging directory
id: changed-files
uses: tj-actions/changed-files@v34.5.3
with:
since_last_remote_commit: "true"
sha: 'HEAD'
echo "N_CHANGES=${CHANGES}" >> $GITHUB_OUTPUT
- name: Push fixes
if: steps.changed-files.outputs.any_changed == 'true'
git diff
- name: Commit any changes
if: steps.files-changed.outputs.N_CHANGES != '0'
shell: bash -l {0}
run: |
echo "Changed files:"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo " $file"
done
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git pull --no-tags
git add *
git commit -m "Automatic application of license header"
git config push.default upstream
git push
env:
Expand Down

0 comments on commit 60367a9

Please sign in to comment.