From 10078400105e67a4ff6f4b0420aa65ef70960d65 Mon Sep 17 00:00:00 2001 From: YutaGoto <12590762+YutaGoto@users.noreply.github.com> Date: Fri, 29 Dec 2023 12:40:23 +0900 Subject: [PATCH 1/2] :construction_worker: update mokumoku action get output text with steps output --- .github/workflows/mokumoku.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/mokumoku.yml b/.github/workflows/mokumoku.yml index f12632c..9b8c75a 100644 --- a/.github/workflows/mokumoku.yml +++ b/.github/workflows/mokumoku.yml @@ -11,16 +11,16 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - name: Set year - run: echo "YEAR=$(date +'%Y')" >> $GITHUB_ENV - - name: Set month - run: echo "MONTH=$(date +'%m')" >> $GITHUB_ENV + - name: Get current date + id: date + run: echo "::set-output name=current::$(date +'%Y%m')" - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.x" - name: Set day - run: echo "DAY=$(python get_third_thursday.py)" >> $GITHUB_ENV + id: day + run: echo "::set-output name=day::$(python get_third_thursday.py)" - name: create dir run: python create_meetup_dir.py - name: Create Pull Request @@ -28,7 +28,7 @@ jobs: uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} - commit-message: ":sparkles: Add ${{ env.YEAR }} ${{ env.MONTH }} mokumoku File" + commit-message: ":sparkles: Add ${{ steps.date.outputs.current }} mokumoku File" committer: YutaGoto author: YutaGoto title: ":tada: アイマスもくもく会" @@ -37,7 +37,7 @@ jobs: ## 日程 - ${{ env.YEAR }}-${{ env.MONTH }}-${{ env.DAY }} (木) 20:00-22:00 + ${{ steps.date.outputs.current }}-${{ steps.day.outputs.day }} (木) 20:00-22:00 ## 場所 @@ -47,7 +47,7 @@ jobs: - [ ] connpassのページをつくる - [ ] connpassヘッダー絵を準備する - branch: add-mokumoku-${{ env.YEAR }}-${{ env.MONTH }} + branch: add-mokumoku-${{ steps.date.outputs.current }} - name: Check outputs run: | - echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}" + echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" From 04217ae37b2a76b7a0b48ce73587987436309f23 Mon Sep 17 00:00:00 2001 From: YutaGoto <12590762+YutaGoto@users.noreply.github.com> Date: Fri, 29 Dec 2023 12:42:44 +0900 Subject: [PATCH 2/2] :construction_worker: add hyphen --- .github/workflows/mokumoku.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mokumoku.yml b/.github/workflows/mokumoku.yml index 9b8c75a..7941eee 100644 --- a/.github/workflows/mokumoku.yml +++ b/.github/workflows/mokumoku.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - name: Get current date id: date - run: echo "::set-output name=current::$(date +'%Y%m')" + run: echo "::set-output name=current::$(date +'%Y-%m')" - name: Set up Python uses: actions/setup-python@v5 with: