From 2e5580871a28aa724b818e9d9a731cdacac279bb Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 4 Sep 2024 14:28:50 +0900 Subject: [PATCH] Use format-release for yaml update --- .github/workflows/draft-release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index da662597c8..917964daa7 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -16,6 +16,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + path: www + + - uses: actions/checkout@v4 + with: + repository: ruby/ruby + path: ruby - uses: ruby/setup-ruby@v1 with: @@ -25,6 +32,11 @@ jobs: run: | ruby lib/draft-release.rb ${{ github.event.client_payload.version || github.event.inputs.version }} + - name: Update data files + run: | + tool/format-release ../www ${{ github.event.client_payload.version || github.event.inputs.version }} . + working-directory: ruby + - name: Create Commit run: | git config user.name "GitHub Actions Bot" @@ -43,3 +55,5 @@ jobs: title: "Create release for ${{ github.event.client_payload.version || github.event.inputs.version }}" body: "This is an automated pull request to create a release" draft: true + + working-directory: www