Skip to content

Commit f695193

Browse files
committed
Use different approach to clone git repo
1 parent 8ee1a8d commit f695193

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

‎.github/workflows/commit-delta-puppet-repo.yml‎

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,28 @@ on:
33
push:
44
branches:
55
- master
6+
env:
7+
REMOTE: ProjectIgnis/DeltaBagooska.git
8+
REPO_NAME: DeltaBagooska
9+
DESTINATION: DeltaBagooska/script
10+
BASE_SHA: 20250420
611
jobs:
712
commit:
813
runs-on: ubuntu-latest
9-
env:
10-
REMOTE: ProjectIgnis/DeltaBagooska.git
11-
REPO_NAME: DeltaBagooska
12-
DESTINATION: DeltaBagooska/script
13-
BASE_SHA: 20250420
1414
steps:
15-
- uses: actions/checkout@v1
16-
- name: Clone destination repository
17-
run: |
18-
cd $HOME
19-
git clone https://${{ secrets.DEPLOY_TOKEN_BAGOOSKA }}@github.com/$REMOTE
20-
mkdir -p $DESTINATION
15+
- uses: actions/checkout@v7
16+
- name: Clone Delta repository
17+
uses: actions/checkout@v7
18+
with:
19+
repository: ${{ env.REMOTE }}
20+
path: DeltaBagooska
21+
ref: 'master'
22+
token: ${{ secrets.DEPLOY_TOKEN_BAGOOSKA }}
2123
- name: Copy new or changed files
2224
id: copy
2325
run: |
26+
mv $REPO_NAME $HOME
27+
mkdir -p $HOME/$DESTINATION
2428
c1grep() { grep "$@" || test $? = 1; }
2529
mv $HOME/$DESTINATION /tmp
2630
mkdir -p $HOME/$DESTINATION
@@ -54,8 +58,8 @@ jobs:
5458
CEMAIL=$(git log -1 --pretty=format:'%ce')
5559
cd $HOME/$DESTINATION
5660
echo $GITHUB_SHA > VERSION
57-
git config user.email "$CEMAIL"
58-
git config user.name "$COMMITTER"
61+
git config --global user.email "$CEMAIL"
62+
git config --global user.name "$COMMITTER"
5963
git add -A .
6064
if [[ -f $HOME/$REPO_NAME/mappings.json ]]; then
6165
git add $HOME/$REPO_NAME/mappings.json

0 commit comments

Comments
 (0)