diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 6ff8445..561f736 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Asana Github Pull Request Link - uses: ExodusMovement/asana-actions@1.0.20 + uses: ExodusMovement/asana-actions@1.0.21 with: token: ${{ secrets.ASANA_TOKEN }} workspace: ${{ secrets.ASANA_WORKSPACE_ID }} \ No newline at end of file diff --git a/README.md b/README.md index 24f533b..788c6d6 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Asana Github Pull Request Link - uses: ExodusMovement/asana-actions@1.0.20 + uses: ExodusMovement/asana-actions@1.0.21 with: token: ${{ secrets.ASANA_TOKEN }} workspace: ${{ secrets.ASANA_WORKSPACE_ID }} diff --git a/index.js b/index.js index 714226e..0282eaa 100644 --- a/index.js +++ b/index.js @@ -46,8 +46,8 @@ const run = async () => { body: newBody } - const client = new github.GitHub(github.token) - const response = await client.pulls.update(request) + const octokit = github.getOctokit(github.token) + const response = await octokit.pulls.update(request) if (response.status !== 200) { core.error('There was an issue while trying to update the pull-request.') }