diff --git a/.github/workflows/simple-pipe.yml b/.github/workflows/simple-pipe.yml new file mode 100644 index 00000000..4fe43ebe --- /dev/null +++ b/.github/workflows/simple-pipe.yml @@ -0,0 +1,58 @@ +# This workflow will build a Java project with Gradle initially +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Simple Pipe + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: greetings-jar + path: build/libs + test-run: + runs-on: ubuntu-latest + needs: build + steps: + - name: Download candidate artifacts + uses: actions/download-artifact@v2 + with: + name: greetings-jar + - shell: bash + run: | + java -jar greetings-actions.jar ${{ github.event.inputs.myValues }} + + + + count-args: + runs-on: ubuntu-latest + steps: + + + - id: report-count + uses: /arg-count-action@main + with: + arguments-to-count: ${{ github.event.inputs.myValues }} + - run: echo + - shell: bash + run: | + echo argument count is ${{ steps.report-count.outputs.arg-count }} diff --git a/extra/ simple-pipe.yml b/extra/ simple-pipe.yml deleted file mode 100644 index af250ca6..00000000 --- a/extra/ simple-pipe.yml +++ /dev/null @@ -1,26 +0,0 @@ -# This workflow will build a Java project with Gradle initially -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle - -name: Simple Pipe - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build