Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 25, 2024
1 parent 2a25a06 commit 0d2c108
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: 'Show Variables'

on:
workflow_dispatch:
push:

jobs:
display-variables:
name: Show GitHub Variables
steps:
- name: Try to show GitHub Variables
run: |
echo "repository variable : ${{ vars.REPOSITORY_VAR }}"
echo "organization variable : ${{ vars.ORGANIZATION_VAR }}"
echo "overridden variable : ${{ vars.OVERRIDE_VAR }}"
echo "variable from shell environment : $env_var"
echo "IMAGE_TAG : $vars.ENV_CONTEXT_VAR"
echo "IMAGE_TAG : $IMAGE_TAG"
echo "QUAY_URL : $QUAY_URL"
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: 'temurin'
- name: Build and analyze
run: mvn clean verify sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }}

0 comments on commit 0d2c108

Please sign in to comment.