ISO-TC211 / schemas

Official ISO/TC 211 XML Schemas (input to schemas.isotc211.org)
7 stars 8 forks source link

ISO-TC211/schemas.isotc211.org#10 trigger schemas.isotc211.org deployment on push #27

Closed CAMOBAP closed 4 years ago

CAMOBAP commented 4 years ago
ronaldtse commented 4 years ago

@CAMOBAP795 can we use an existing marketplace action like this: https://github.com/marketplace/actions/webhook-trigger ?

CAMOBAP commented 4 years ago

Yep, this is how it will look like:

...
- name: Trigger another repo build
  uses: zzzze/webhook-trigger@master
  with:
    data: "{\"event_type\":\"deploy_staging\"}"
    webhook_url: https://api.github.com/repos/ISO-TC211/schemas.isotc211.org/dispatches
    options: "-H \"Accept: application/vnd.github.everest-preview+json\" -H \"Content-Type: application/json\""
   user: "${{ secrets.PAT_USERNAME }}:${{ secrets.PAT_TOKEN }}"

To be honest it doesn't look like a simpler solution, because this action was developed for general WebHook

I think we can make better action if we decided to make action specially for triggering other workflows, this is how it may look like:

...
- name: Trigger another repo build
  uses: metanorma/repository-dispatch@master
  with:
    event_type: "{\"event_type\":\"deploy_staging\"}"
    repository: ISO-TC211/schemas
    payload: {...} 
    token: "${{ secret.PAT_TOKEN}}"
CAMOBAP commented 4 years ago

Update!!!

@ronaldtse

https://github.com/marketplace/actions/repository-dispatch - this is exactly what we are looking

Should I move to it?

ronaldtse commented 4 years ago

Excellent!

CAMOBAP commented 4 years ago

@ronaldtse done

ronaldtse commented 4 years ago

Thanks @CAMOBAP795 !

ronaldtse commented 4 years ago

@CAMOBAP795 issue found:

Can you please help?

ejbleys commented 4 years ago

Can anyone tell me how/where the HTML code for https://schemas.isotc211.org/schemas https://schemas.isotc211.org/schemas is managed? Or does it happen auto-magically? (I doubt it somehow!) EG are the links on that page just added to the end of the list, or is the page curated?

Cheers E Evert Bleys 4 Tudor Place HUGHES ACT 2605 Australia +61 (0)2 62811773 +61 (0)411 483 876 ejbleys@gmail.com Skype ejbleijs@gmail.com

ronaldtse commented 4 years ago

@ejbleys The HTML code is managed here: https://github.com/ISO-TC211/schemas.isotc211.org

The page is curated manually but submodules this current repo for data. We're still fixing the trigger.

ejbleys commented 4 years ago

I was just looking at the order of standards in the HTML and wondering ... Evert Bleys 4 Tudor Place HUGHES ACT 2605 Australia +61 (0)2 62811773 +61 (0)411 483 876 ejbleys@gmail.com Skype ejbleijs@gmail.com

On 2020-03-16, at 7:57 pm, Ronald Tse notifications@github.com wrote:

@ejbleys https://github.com/ejbleys The HTML code is managed here: https://github.com/ISO-TC211/schemas.isotc211.org https://github.com/ISO-TC211/schemas.isotc211.org The page is curated manually but submodules this current repo for data. We're still fixing the trigger.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ISO-TC211/schemas/pull/27#issuecomment-599418735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBGJZZGWLCEXK7EGXBLQP3RHXSZJANCNFSM4LLMD6GQ.

ronaldtse commented 4 years ago

@ejbleys the schema HTMLs are auto-generated -- I see what you mean -- we can order them.

ejbleys commented 4 years ago

Hi Guys Has the source for https://schemas.isotc211.org/ https://schemas.isotc211.org/ changed? I was convinced it had been https://github.com/ISO-TC211/schemas https://github.com/ISO-TC211/schemas The link on the TC211 page now takes users to https://github.com/ISO-TC211/XML https://github.com/ISO-TC211/XML which, as far as I know, is not correct. that page is for XLM maintenance, not publication. Cheers E Evert Bleys Convenor ISO TC 211 XML Maintenance Group 4 Tudor Place HUGHES ACT 2605 Australia email: ejbleys@gmail.com Mob: +61 (0)411 483 876 Land: +61 (0)2 6281 1773 Skype: ejbleijs@gmail.com

On 2020-03-16, at 8:07 pm, Ronald Tse notifications@github.com wrote:

@ejbleys https://github.com/ejbleys the schema HTMLs are auto-generated -- I see what you mean -- we can order them.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ISO-TC211/schemas/pull/27#issuecomment-599422574, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBGJZ55AOOFQRP7POWSPSDRHXT3NANCNFSM4LLMD6GQ.