Skip to content

Commit

Permalink
CI: auto-create version.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
hwo-wd committed Aug 5, 2024
1 parent 3e55bb4 commit ec5447c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
if: github.event.head_commit.author.name != 'actions'
steps:
- uses: actions/checkout@v4
- name: Create version.txt
run: |
commit=$(git rev-parse --short HEAD)
if tag=$(git describe --tags --abbrev=0 2>/dev/null); then
printf "Tag: %s\nCommit: %s\n" "$tag" "$commit" > META-INF/version.txt
else
printf "Tag: none\nCommit: %s\n" "$commit" > META-INF/version.txt
fi
- name: Create two versions out of base theme
run: |
cp -r theme/keycloak-theme-world-direct-base theme/keycloak-theme-world-direct-without-forms-login
Expand Down
1 change: 0 additions & 1 deletion src/META-INF/version.txt

This file was deleted.

0 comments on commit ec5447c

Please sign in to comment.