sre-france / meetups

CFP and Slides from past meetups
6 stars 8 forks source link

Github workflow breaks if `/` is in the title #53

Closed tormath1 closed 2 years ago

tormath1 commented 2 years ago

This talk proposal has broke the CI: https://github.com/sre-france/meetups/issues/52 because of the / character in the title.

In the GH Action logs:

Traceback (most recent call last):
  File "./scripts/create-content/main.py", line 76, in <module>
    main(filename)
  File "./scripts/create-content/main.py", line 71, in main
    with open(post_filename, "w+") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'cfp/2022-06-13-ignition-/-butane-take-the-power-back-on-your-provisioning.md'

In the slugify function, we should replace / character by - I guess. https://github.com/sre-france/meetups/blob/7df5c5c36c9870f61629b8971b6fb3467f101de3/scripts/create-content/main.py#L12