Skip to content

policy

policy #122

Workflow file for this run

name: Poll CF Pages Deploy
on: push
jobs:
notify:
name: Notify slack
runs-on: ubuntu-latest
environment:
name: production
url: https://artemis.mw.zone
env:
CF_ACCOUNT_EMAIL: ${{ secrets.CF_ACCOUNT_EMAIL }}
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CF_API_KEY: ${{ secrets.CF_API_KEY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
steps:
- uses: actions/checkout@v3
- run: echo "gitrev=`git rev-parse --short ${{ github.sha }}`" >> $GITHUB_ENV
- uses: WalshyDev/cf-pages-await@v1
with:
accountEmail: ${{ secrets.CF_ACCOUNT_EMAIL }}
apiKey: ${{ secrets.CF_API_KEY }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
project: "artemis"
- uses: slackapi/[email protected]
with:
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "new version <${{ github.event.head_commit.url }}|${{ env.gitrev }}> deployed to <https://artemis.mw.zone|artemis>"
},
"accessory": {
"type": "image",
"image_url": "https://raw.githubusercontent.com/moonwalker/artemis/main/apps/web/src/assets/logo.png",
"alt_text": "artemis logo"
}
}
]
}