From 99355d768ee3a775302ea94d147e1b9eb49f5e1d Mon Sep 17 00:00:00 2001 From: Graham Neubig Date: Sun, 6 Oct 2024 23:17:12 -0400 Subject: [PATCH 1/2] Bump actions versions --- .github/workflows/openhands-resolver-experimental.yml | 8 ++++---- .github/workflows/openhands-resolver.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/openhands-resolver-experimental.yml b/.github/workflows/openhands-resolver-experimental.yml index faca8d7..b495630 100644 --- a/.github/workflows/openhands-resolver-experimental.yml +++ b/.github/workflows/openhands-resolver-experimental.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' @@ -39,7 +39,7 @@ jobs: done - name: Comment on issue with start message - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -97,7 +97,7 @@ jobs: fi - name: Comment on issue - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index f4cf6e4..e652a7b 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -20,10 +20,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' @@ -47,7 +47,7 @@ jobs: run: echo "ISSUE_NUMBER=${{ github.event.issue.number || inputs.issue_number }}" >> $GITHUB_ENV - name: Comment on issue with start message - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -111,7 +111,7 @@ jobs: fi - name: Comment on issue - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | From 868603c643742d4bf807dce1066367bcc147489e Mon Sep 17 00:00:00 2001 From: Graham Neubig Date: Sun, 6 Oct 2024 23:34:36 -0400 Subject: [PATCH 2/2] Add inputs to workflow --- .github/workflows/openhands-resolver.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index e652a7b..7f7cb55 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -6,6 +6,19 @@ on: issue_number: required: true type: number + secrets: + LLM_MODEL: + required: true + LLM_API_KEY: + required: true + LLM_BASE_URL: + required: false + PAT_TOKEN: + required: true + PAT_USERNAME: + required: true + PAT_FORK_OWNER: + required: false issues: types: [labeled] @@ -35,7 +48,7 @@ jobs: PAT_TOKEN: ${{ secrets.PAT_TOKEN }} PAT_USERNAME: ${{ secrets.PAT_USERNAME }} run: | - required_vars=("LLM_MODEL" "LLM_API_KEY" "LLM_BASE_URL" "PAT_TOKEN" "PAT_USERNAME") + required_vars=("LLM_MODEL" "LLM_API_KEY" "PAT_TOKEN" "PAT_USERNAME") for var in "${required_vars[@]}"; do if [ -z "${!var}" ]; then echo "Error: Required environment variable $var is not set."