Azure / azure-sdk-korean

Korean explanation and related materials to navigate Azure SDK parent and child repositories
https://azure.github.io/azure-sdk-korean/
MIT License
34 stars 59 forks source link

[Scheduled] Automate "Last Updated" Field in metadata table #180

Open mukmookk opened 1 year ago

mukmookk commented 1 year ago

In order to maintain the most recent update information for our .md files, we are considering automating the update of the "Last Updated" field using GitHub Actions.

Works expected:

  1. Create a GitHub Action workflow for the repository.
  2. Within the workflow, scan for changed .md files in the commit.
  3. For each changed .md file, modify the "Last Updated" field to reflect the current date.
  4. Commit the updated .md files with a message like "Automatically updated Last Updated field".
jeesang7 commented 1 year ago

좋은 아이디어 입니다 해당 작업이 devops, CI/CD 이런 기술들을 공부하는데 좋은 기회가 될 것 같습니다. 특히, devops 쪽에 관심있는 분들은 이모티콘으로 반응 주시면 같이 협업할 기회를 마련하도록 하겠습니다

mukmookk commented 12 months ago

기능을 굳이 도입해야할지에 대해서 고민이 있습니다.

현재 두 가지 방식으로 수행을 할 수 있을 것으로 예상이 되는 상황입니다.

1. pre-commit의 훅을 활용

Pros

Cons

단점이 다소 치명적이기에 CI 방식으로 고려를 했습니다만 마찬가지로 우려 사항이 존재합니다.

2. Github Action을 통한 CI

Pros

Cons

때문에 굳이 꼭 도입을 해야할까라는 고민이 드는 상황입니다.