Implement config validation as a new command #14
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: Java CI with Maven | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
name: Jira-issue-lottery config file validation | |
timeout-minutes: 2 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Download validation binary from main | |
with: | |
# ref: main | |
sparse-checkout: | | |
.github/jira-issue-lottery-1.0.0-SNAPSHOT-runner | |
sparse-checkout-cone-mode: false | |
- run: mvn -v | |
name: settings | |
- run: cat ${M2_HOME}/settings.xml | |
- name: Validate config file from Pull Request | |
env: | |
JIRA_ISSUE_LOTTERY_ACCESS_TOKEN: ${{ secrets.JIRA_TOKEN }} | |
run: export JIRA_ISSUE_LOTTERY_CONFIG_FILE_REPO="https://github.com/${{ github.repository }}" && .github/jira-issue-lottery-1.0.0-SNAPSHOT-runner validate ${{ github.event.number }} |