Skip to content

Commit

Permalink
fix: provides and rebase to base_ref
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
  • Loading branch information
skjnldsv authored Jan 31, 2024
1 parent 7c8471d commit 382d3ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions workflow-templates/command-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
arg1: ${{ steps.command.outputs.arg1 }}
arg2: ${{ steps.command.outputs.arg2 }}
head_ref: ${{ steps.comment-branch.outputs.head_ref }}
base_ref: ${{ steps.comment-branch.outputs.base_ref }}

steps:
- name: Check actor permission
Expand Down Expand Up @@ -69,8 +70,8 @@ jobs:
uses: skjnldsv/read-package-engines-version-actions@v1.2
id: package-engines-versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'
fallbackNode: '^20'
fallbackNpm: '^10'

- name: Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }}
uses: actions/setup-node@v3
Expand All @@ -86,10 +87,9 @@ jobs:
npm ci
npm run build --if-present
- name: Rebase
- name: Rebase to ${{ needs.init.outputs.base_ref }}
if: ${{ contains(needs.init.outputs.arg1, 'rebase') }}
run: |
git rebase master
run: git rebase ${{ needs.init.outputs.base_ref }}

- name: Commit and push default
if: ${{ !contains(needs.init.outputs.arg1, 'fixup') && !contains(needs.init.outputs.arg1, 'amend') }}
Expand Down

0 comments on commit 382d3ec

Please sign in to comment.