Skip to content

Commit 1de6aee

Browse files
Update generate.yml
1 parent 0337b81 commit 1de6aee

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

Diff for: .github/workflows/generate.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,14 @@ jobs:
8989
asset_name: ${{ steps.get_samba.outputs.filename }}
9090
asset_content_type: application/tar+gzip
9191

92-
- name: Push samba source to another repository
93-
run: |
94-
git config --local user.name "zekiahmetbayar"
95-
git config --local user.email "[email protected]"
96-
git clone https://github.com/aciklab/samba.git
97-
mv samba-${{steps.prepare.outputs.os_name}}${{steps.prepare.outputs.os_version}}-${{steps.prepare.outputs.samba_version}}-${{steps.date.outputs.date}}.tar.gz samba/samba_source/
98-
git add .
99-
git commit -m "Added new samba source, version: ${{steps.prepare.outputs.samba_version}}"
100-
git push origin https:://$USERNAME:[email protected]/aciklab/samba.git HEAD:main --force
92+
- name: Pushes to another repository
93+
uses: aciklab/samba_source@main
10194
env:
102-
REPO_KEY: ${{secrets.PUSH_TOKEN}}
103-
USERNAME: zekiahmetbayar
95+
API_TOKEN_GITHUB: ${{ secrets.PUSH_TOKEN }}
96+
with:
97+
source-directory: 'output'
98+
destination-github-username: 'aciklab'
99+
destination-repository-name: 'samba'
100+
user-email: [email protected]
101+
target-branch: main
102+

0 commit comments

Comments
 (0)