diff --git a/actions/add-notification-step/action.yaml b/actions/add-notification-step/action.yaml index 794338a..2b27f4a 100644 --- a/actions/add-notification-step/action.yaml +++ b/actions/add-notification-step/action.yaml @@ -16,6 +16,10 @@ inputs: required: true type: string description: Message state + mention: + required: false + type: boolean + description: Whether to mention user or not outputs: state: value: ${{ steps.template.outputs.state }} @@ -35,7 +39,7 @@ runs: MARKDOWN=$(jq '.phases | map(.) | join("\n")' <<< $STATE) echo $MARKDOWN TEMPLATE=$(cat "${{ inputs.template_path }}") - TEMPLATE=$(jq ".blocks[4].text.text = $MARKDOWN" <<< $TEMPLATE) + TEMPLATE=$(jq ".blocks[4].text.text = $MARKDOWN" <<< $TEMPLATE) echo $TEMPLATE echo $TEMPLATE > ${{ inputs.template_path }} BASE64="$(echo $STATE | base64 -w 0)" diff --git a/actions/build-notification-template/action.yaml b/actions/build-notification-template/action.yaml index 40d00c0..766a8dc 100644 --- a/actions/build-notification-template/action.yaml +++ b/actions/build-notification-template/action.yaml @@ -63,7 +63,7 @@ runs: PATH=$(readlink -f $STORE_IN_FILE) echo "file=$PATH" >> $GITHUB_OUTPUT - - name: Create build phases templatle file + name: Create build phases template file id: phases shell: bash run: | diff --git a/actions/read-config-file/action.yaml b/actions/read-config-file/action.yaml index d7268a3..4779ac9 100644 --- a/actions/read-config-file/action.yaml +++ b/actions/read-config-file/action.yaml @@ -30,11 +30,28 @@ runs: echo ':computer: ${{ github.ref }}' >> $GITHUB_STEP_SUMMARY echo ':link: ${{ github.sha }}' >> $GITHUB_STEP_SUMMARY - - name: Read JSON config + name: Download config yaml + id: yaml + shell: bash + run: | + URL=$(echo "https://${{ inputs.gh_token }}@raw.githubusercontent.com/Geta/gks-tenant-gcc/main/.github/configs/${{ inputs.file }}") + FILE_PATH=$(echo "./config.yaml") + curl -L $URL > $FILE_PATH + echo "file=$FILE_PATH" >> $GITHUB_OUTPUT + - + name: Convert YAML to JSON + uses: fabasoad/data-format-converter-action@main + id: yaml2json + with: + input: ${{ steps.yaml.outputs.file }} + from: 'yaml' + to: 'json' + - + name: Read YAML config id: json shell: bash run: | - SETTINGS=$(cat ${{ inputs.file }}) + SETTINGS=$(echo '${{ steps.yaml2json.outputs.output }}') SETTINGS="${SETTINGS//'%'/'%25'}" SETTINGS="${SETTINGS//$'\n'/}" SETTINGS="${SETTINGS//$'\r'/}" diff --git a/assets/icons/amundsen.jpg b/assets/icons/amundsen.jpg new file mode 100644 index 0000000..db19238 Binary files /dev/null and b/assets/icons/amundsen.jpg differ