diff --git a/.github/workflows/generate_api.yml b/.github/workflows/generate_api.yml index 4073d51f1..8b67d857c 100644 --- a/.github/workflows/generate_api.yml +++ b/.github/workflows/generate_api.yml @@ -14,14 +14,14 @@ jobs: contents: write pull-requests: write steps: - - name: Config git to rebase - run: git config --global pull.rebase true - - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 + - name: Config git to rebase + run: git config --global pull.rebase true + - name: Setup Node.js uses: actions/setup-node@v3 with: @@ -37,7 +37,7 @@ jobs: - name: Get current date id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - name: GitHub App token id: github_app_token @@ -51,11 +51,11 @@ jobs: uses: peter-evans/create-pull-request@v6 with: token: ${{ steps.github_app_token.outputs.token }} - commit-message: Updated opensearch-js to reflect the latest OpenSearch API spec (${{ steps.date.outputs.date }}) + commit-message: Updated opensearch-js to reflect the latest OpenSearch API spec (${{ env.date }}) title: [AUTOCUT] Update opensearch-js to reflect the latest OpenSearch API spec body: | Update `opensearch-js` to reflect the latest [OpenSearch API spec](https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml). - Date: ${{ steps.date.outputs.date }} + Date: ${{ env.date }} branch: update-api-from-spec base: main signoff: true