.github/workflows/update_api.yml in slack-ruby-client-2.2.0 vs .github/workflows/update_api.yml in slack-ruby-client-2.3.0

- old
+ new

@@ -9,11 +9,11 @@ runs-on: ubuntu-latest permissions: contents: write pull-requests: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 - name: Config git to rebase run: git config --global pull.rebase true @@ -33,18 +33,18 @@ id: api-ref run: echo "::set-output name=api-ref::$(git rev-parse --short HEAD:lib/slack/web/api/slack-api-ref)" - name: GitHub App token if: ${{ github.repository == 'slack-ruby/slack-ruby-client' }} id: github_app_token - uses: tibdex/github-app-token@v1.6.0 + uses: tibdex/github-app-token@v2.1.0 with: app_id: ${{ secrets.CI_APP_ID }} private_key: ${{ secrets.CI_APP_PRIVATE_KEY }} installation_id: 36985419 - name: Create pull request id: cpr - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update API from slack-api-ref@${{ steps.api-ref.outputs.api-ref }} (${{ steps.date.outputs.date }}) title: Update API from slack-api-ref@${{ steps.api-ref.outputs.api-ref }} body: | @@ -53,9 +53,14 @@ Date: ${{ steps.date.outputs.date }} branch: automated-api-update base: master committer: slack-ruby-ci-bot <noreply@github.com> author: slack-ruby-ci-bot <noreply@github.com> + - name: Check out update branch + if: ${{ steps.cpr.outputs.pull-request-number != '' }} + run: | + git fetch origin automated-api-update + git checkout automated-api-update - name: Update CHANGELOG uses: jacobtomlinson/gha-find-replace@v3 if: ${{ steps.cpr.outputs.pull-request-number != '' }} with: include: CHANGELOG.md