Skip to content

Commit

Permalink
use sourcegraph-bot-devx user to bypass branch protection
Browse files Browse the repository at this point in the history
  • Loading branch information
BolajiOlajide committed Nov 5, 2024
1 parent df67bf0 commit f974249
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/artifact_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,15 @@ jobs:
env:
latest_release_tag: ${{ needs.check_release.outputs.latest_release_tag }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git config user.name sourcegraph-bot-devx
git config user.email 127119266+sourcegraph-bot-devx@users.noreply.github.com
git add migrations
git add TAG
git add gql
git commit -m "Add artifacts for $latest_release_tag"
- name: Push changes
run: |
git push origin main
- name: Create new tag
Expand All @@ -122,4 +120,4 @@ jobs:
BODY="Automatically created release with tag $latest_release_tag."
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-d "{\"tag_name\": \"$latest_release_tag\", \"name\": \"$RELEASE_NAME\", \"body\": \"$BODY\"}" \
"https://api.github.com/repos/${{ github.repository }}/releases"
"https://api.github.com/repos/${{ github.repository }}/releases"

0 comments on commit f974249

Please sign in to comment.