Skip to content

Bump actions/github-script from 6 to 7 #16

Bump actions/github-script from 6 to 7

Bump actions/github-script from 6 to 7 #16

Workflow file for this run

name: Validation
on:
workflow_dispatch:
push:
branches-ignore:
- main
jobs:
static:
name: Validation
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Python Setup
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Python Tools Setup
run: pip install -r requirements.txt
- name: Validation
run: |
set -o pipefail
iac-validate ./data/ |& tee validate_output.txt
- name: Webex Notifcation
if: always()
env:
TOKEN: ${{ secrets.WEBEX_TOKEN }}
ROOMID: ${{ secrets.WEBEX_ROOM_ID }}
MESSAGE: |
[**[${{ job.status }}] ${{ github.repository }} #${{ github.run_number }}**](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
* Commit: [${{ github.event.head_commit.message }}](${{ github.event.head_commit.url }})[${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
* Author: ${{ github.event.sender.login }}
* Branch: ${{ github.ref }} ${{ github.head_ref }}
* Event: ${{ github.event_name }}
run: |
FULL_MESSAGE=$MESSAGE`python .ci/render-wx.py`
echo $FULL_MESSAGE
URL="https://api.ciscospark.com/v1/messages/"
curl \
-X POST \
-H "Authorization:Bearer ${TOKEN}" \
--form "roomId=${ROOMID}" \
--form "markdown=${FULL_MESSAGE}" \
${URL}