Skip to content

Commit

Permalink
fix sync CI by cloning the repo (#88)
Browse files Browse the repository at this point in the history
to avoid all the grafting shenanigans of the few previous PRs and CI
runs... let's clone the repo manually and work from there 🤔
  • Loading branch information
amtoine authored Nov 17, 2023
1 parent a127fe7 commit 88d508e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/sync_action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,25 @@ inputs:
runs:
using: 'composite'
steps:
- name: "Fetching from origin"
- name: Setting up the repo
run: |
git clone https://github.com/amtoine/nu-git-manager /tmp/nu-git-manager
cd /tmp/nu-git-manager
git fetch origin main
git fetch origin nightly:nightly
git checkout nightly
shell: bash

- name: Set up Git
shell: bash
working-directory: /tmp/nu-git-manager
run: |
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
- name: Show Git config and worktree
shell: bash
working-directory: /tmp/nu-git-manager
run: |
git config --list | grep user.name
git config --list | grep user.email
Expand All @@ -41,8 +45,10 @@ runs:
exit 1
fi
shell: bash
working-directory: /tmp/nu-git-manager

- name: "Push to remote"
run: git push origin nightly
shell: bash
working-directory: /tmp/nu-git-manager
if: ${{ inputs.do_push == 'true' && !env.ACT }}

0 comments on commit 88d508e

Please sign in to comment.