# This is a basic workflow to help you get started with Actions

name: Verify Sling Release

# Controls when the action will run. 
on:
  workflow_dispatch:
    inputs: 
      releaseId:
        description: Sling Release ID
        required: true
jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          repository: apache/sling-org-apache-sling-committer-cli
      - name: Set up JDK 11
        uses: actions/setup-java@v1
        with:
          java-version: 11
      - name: Build Sling Committers CLI
        run: mvn clean package
      - name: Verify Release
        run: docker run -e ASF_USERNAME -e ASF_PASSWORD apache/sling-cli release verify -r ${{ github.event.inputs.releaseId }}
        env:
          ASF_USERNAME: ${{ secrets.ASF_USERNAME }}
          ASF_PASSWORD: ${{ secrets.ASF_PASSWORD }}

# This is a basic workflow to help you get started with Actions

name: Verify Sling Release

# Controls when the action will run. 
on:
  workflow_dispatch:
    inputs: 
      releaseId:
        description: Sling Release ID
        required: true
jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          repository: apache/sling-org-apache-sling-committer-cli
          ref: SLING-10294-status-code
      - name: Set up JDK 11
        uses: actions/setup-java@v1
        with:
          java-version: 11
      - name: Build Sling Committers CLI
        run: mvn clean package
      - name: Verify Release
        run: docker run -e ASF_USERNAME -e ASF_PASSWORD apache/sling-cli release verify -r ${{ github.event.inputs.releaseId }}
        env:
          ASF_USERNAME: ${{ secrets.ASF_USERNAME }}
          ASF_PASSWORD: ${{ secrets.ASF_PASSWORD }}

Set to checkout a branch of the Committer CLI supporting return codes
Set to checkout a branch of the Committer CLI supporting return codes