Skip to content

Commit

Permalink
feat: Add gh authentication to GitHub Actions work
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Jan 2, 2024
1 parent 259cba1 commit ece09ec
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ece09ec

Please sign in to comment.