Skip to content

Commit

Permalink
chore: use environment variables to pass input to the job script
Browse files Browse the repository at this point in the history
  • Loading branch information
jenstroeger committed May 14, 2023
1 parent d247647 commit 7b162f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/_generate-rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ jobs:
run: |
git config --global user.name "$USER_NAME"
git config --global user.email "$USER_EMAIL"
git checkout ${{ inputs.to_head }}
git rebase ${{ inputs.from_base }}
git checkout "$TO_HEAD"
git rebase "$FROM_BASE"
git push --force-with-lease
env:
USER_NAME: ${{ inputs.git_user_name }}
USER_EMAIL: ${{ inputs.git_user_email }}
TO_HEAD: ${{ inputs.to_head }}
FROM_BASE: ${{ inputs.from_base }}

0 comments on commit 7b162f8

Please sign in to comment.