Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Mafyuh/iac
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 199b28c0bd6658a7eed38bd8652d82ee3c9e5e79
Choose a base ref
...
head repository: Mafyuh/iac
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 93b3233d73f89369209f6c89a879c6b5062799b3
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Dec 13, 2024

  1. Update .forgejo/workflows/yamllint.yml

    mafyuh committed Dec 13, 2024
    Copy the full SHA
    f518ae4 View commit details
  2. Copy the full SHA
    93b3233 View commit details
Showing with 5 additions and 1 deletion.
  1. +5 −1 .forgejo/workflows/yamllint.yml
6 changes: 5 additions & 1 deletion .forgejo/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,11 @@ jobs:
- name: Get modified YAML files
id: get_changed_files
run: |
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD | grep -E '\.(yml)$' || true)
if git rev-parse --verify HEAD^ >/dev/null 2>&1; then
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD | grep -E '\.(yml)$' || true)
else
CHANGED_FILES=$(git diff --name-only $(git hash-object -t tree /dev/null) HEAD | grep -E '\.(yml)$' || true)
fi
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
- name: Run yamllint on modified files