Get tag from CI #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Beta | |
on: | |
push: | |
branches: | |
- "beta/*" | |
tags: | |
- "*-beta*" | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-style: | |
name: Ktlint check beta | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
cache: gradle | |
- name: Set output | |
id: vars | |
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | |
- name: Check output | |
env: | |
RELEASE_VERSION: ${{ steps.vars.outputs.tag }} | |
run: | | |
echo $RELEASE_VERSION | |
echo ${{ steps.vars.outputs.tag }} | |
#- name: Gradle Wrapper Validation | |
# uses: gradle/actions/wrapper-validation@v3 | |
#- name: Gradle Setup | |
# uses: gradle/actions/setup-gradle@v3 | |
#- name: Run ktlint | |
# run: | | |
# cd husky | |
# ./gradlew ktlintCheck | |
# /husky/husky/app/build/outputs/apk/huskyBeta/debug/husky_{{tag}}.apk |