From ece09ec9e150bb28d3931a7ad1883ff447b0f61a Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 00:33:43 +0000 Subject: [PATCH] feat: Add gh authentication to GitHub Actions work --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b2b8ab2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Main Workflow + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Authenticate gh tool + run: gh auth login --with-token < ${{ secrets.GH_TOKEN }} + if: secrets.GH_TOKEN != '' + + - name: Run cherry-pick.sh script + run: bash scripts/cherry-pick.sh