From cb205cc1bc08b6d85250bdd8fe4fea169f0cc2fc Mon Sep 17 00:00:00 2001 From: Emmanuel Bruno <emmanuel.bruno@univ-tln.fr> Date: Fri, 28 Oct 2022 16:18:21 +0200 Subject: [PATCH] first try --- action.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 947f106..eb4f928 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,25 @@ name: 'Java CI Build' -description: 'Build a Java CI project with maven and Docker' +description: 'Build a Java CI project with maven and Docker' +inputs: + GITHUBLOGIN: + description: 'A Github login' + required: true + GITHUBPASSWORD: + description: 'A Github PAT' + required: true + DOCKER_USERNAME: + description: 'A Docker username' + required: true + DOCKER_PASSWORD: + description: 'A Docker token' + required: true + SONAR_URL: + description: 'A sonar URL' + required: true + SONAR_TOKEN: + description: 'A sonar token' + required: true + runs: using: "composite" steps: @@ -17,7 +37,7 @@ runs: if: ${{ success() }} with: github-token: ${{ github.token }} # this will use the runner's token. - ms-teams-webhook-uri: ${{ secrets.MSTEAMS_WEBHOOK }} + ms-teams-webhook-uri: ${{ input.MSTEAMS_WEBHOOK }} notification-summary: Build and Deploy success. notification-color: 28a745 timezone: Europe/Paris @@ -26,7 +46,7 @@ runs: if: ${{ failure() }} with: github-token: ${{ github.token }} # this will use the runner's token. - ms-teams-webhook-uri: ${{ secrets.MSTEAMS_WEBHOOK }} + ms-teams-webhook-uri: ${{ input.MSTEAMS_WEBHOOK }} notification-summary: Build and Deploy failure. notification-color: dc3545 timezone: Europe/Paris -- GitLab