Skip to content

Commit

Permalink
chore: ignore files created by Kotlin compiler, and include more info…
Browse files Browse the repository at this point in the history
…rmation in release workflow logs
  • Loading branch information
charleskorn committed Nov 14, 2024
1 parent 54c5af2 commit 8a7413e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,16 @@ jobs:
- name: Get tag
id: get_tag
run: |
echo "Local changes, if any:"
git status
if git describe --tags --abbrev=0 --exact-match >/dev/null; then
echo "tag=$(git describe --tags --abbrev=0 --exact-match)" >> $GITHUB_OUTPUT
tag=$(git describe --tags --abbrev=0 --exact-match)
echo "Found tag $tag."
echo "tag=$tag" >> $GITHUB_OUTPUT
else
echo "git describe failed, skipping release:"
git describe --tags --abbrev=0 --exact-match
echo "skip=true" >> $GITHUB_OUTPUT
fi
if: github.repository == 'charleskorn/kaml' && github.ref == 'refs/heads/main' && github.event_name == 'push'
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ gradle-app.setting
out
*.iml

/.kotlin/
**/.kotlin/

0 comments on commit 8a7413e

Please sign in to comment.