Skip to content

New version: DataMigrations v0.0.3 #59914

New version: DataMigrations v0.0.3

New version: DataMigrations v0.0.3 #59914

# This workflow updates feeds when the label `BREAKING` is applied to PRs.
name: Send breaking to Zulip
on:
pull_request:
types: [ labeled ]
permissions:
contents: read
jobs:
update-zulip-breaking:
if: ${{ (github.event.label.name == 'BREAKING' || github.event.label.name == 'zulip test') && github.repository == github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@ac0d62164df5a47de404f4e96ce86a1a28a28d56 # v1.9.6
with:
version: 1.6.2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0
- name: Collect Zulip info
id: zulip
shell: julia --color=yes {0}
run: |
include(joinpath(ENV["GITHUB_WORKSPACE"], ".ci", "parse_env.jl"))
text, pr_url = parse_env(ENV)
using Pkg
Pkg.activate(mktempdir())
Pkg.add(name="GitHubActions", version="0.1")
using GitHubActions
content = string("**", ENV["PR_NAME"], "**\n\n", text)
set_output("content", content)
env:
PR_NAME: ${{ github.event.pull_request.title }}
PR_NUMBER: ${{ github.event.number }}
PR_BODY: ${{ github.event.pull_request.body }}
- name: Update Zulip feed
uses: zulip/github-actions-zulip/send-message@08b6fbd07f5834e5b930a85bc7740e9fd44ab2e7
with:
api-key: ${{ secrets.ZULIP_API_KEY }}
email: '[email protected]'
organization-url: 'https://julialang.zulipchat.com'
to: 'breaking-changes-feed'
type: 'stream'
topic: 'Package breaking updates'
content: ${{ steps.zulip.outputs.content }}