Sha256: 422c5839863ba1f30b7881603e961297b7b18e6d2151c0ea08adce39448da923

Contents?: true

Size: 1.77 KB

Versions: 5

Compression:

Stored size: 1.77 KB

Contents

# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
name: notify

on:
  push:
    branches: [ master ]
    tags:
      - '*'

jobs:
  notify:
    name: Notify dependent repos
    runs-on: ubuntu-latest
    steps:
      - name: Trigger repositories
        env:
          GH_USERNAME: metanorma-ci
          GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
        run: |
          curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
          [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
          CLIENT_PAYLOAD=$(cat <<EOF
          "{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
          EOF
          )
          for repo in $TEMPLATE_REPOS" $SAMPLES_REPOS"
          do
            sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
          done

      - name: Trigger release repositories
        if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
        env:
          GH_USERNAME: metanorma-ci
          GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
        run: |
          curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
          [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
          CLIENT_PAYLOAD=$(cat <<EOF
          "{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
          EOF
          )
          for repo in $DEPENDENT_REPOS
          do
            sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
          done

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metanorma-1.2.4 .github/workflows/notify.yml
metanorma-1.2.3 .github/workflows/notify.yml
metanorma-1.2.2 .github/workflows/notify.yml
metanorma-1.2.1 .github/workflows/notify.yml
metanorma-1.2.0 .github/workflows/notify.yml