Skip to content

Commit

Permalink
attempt to bypass branch protection rule from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Jun 29, 2023
1 parent 82cc798 commit c3ec11d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Update Version to Release Tag
run: |
Expand All @@ -22,11 +26,11 @@ jobs:
sed -i "s/\"version\": \".*\",/\"version\": \"$TAG\",/" bindings/nodejs/package.json
# Commit and push changes
git config user.name "Luis Antonio Obis Aparicio"
git config user.email "luis.antonio.obis@gmail.com"
git config --local user.name github-actions
git config --local user.email github-actions@github.com
git add src/hvps/version.py bindings/nodejs/package.json
git commit -m "Update version to $TAG"
git push --force origin HEAD:main
git push
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c3ec11d

Please sign in to comment.