mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-22 23:40:30 +00:00
22 lines
497 B
Bash
Executable File
22 lines
497 B
Bash
Executable File
#!/bin/bash
|
|
set -euxo pipefail
|
|
IFS=$'\n\t'
|
|
cd "$(dirname "$0")"/..
|
|
|
|
git config user.name "Taiki Endo"
|
|
git config user.email "te316e89@gmail.com"
|
|
|
|
for manifest in manifests/*.json; do
|
|
git add -N "${manifest}"
|
|
if ! git diff --exit-code -- "${manifest}"; then
|
|
name="$(basename "${manifest%.*}")"
|
|
git add "${manifest}"
|
|
git commit -m "Update ${name}"
|
|
has_update=1
|
|
fi
|
|
done
|
|
|
|
if [[ -n "${has_update:-}" ]]; then
|
|
echo "success=false" >>"${GITHUB_OUTPUT}"
|
|
fi
|