Skip to content

Commit

Permalink
upload source to salsa repo for ppa
Browse files Browse the repository at this point in the history
Update make_version_file.py [skip-ci]
  • Loading branch information
adrianinsaval committed Jan 8, 2024
1 parent 39d698c commit 19fa479
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/source_creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ jobs:
tar -A -f \$toplevel/../freecad_source.tar \$sha1.tar && \
rm \$sha1.tar"
gzip ../freecad_source.tar
- name: Upload source to salsa repo
run: |
git clone https://salsa.debian.org/adrianinsaval/freecad.git --branch versioned-src/dummy --single-branch salsa
cd salsa
git checkout -B versioned-src/${{ matrix.branch }} versioned-src/dummy
tar -xzf ../freecad_source.tar.gz
mv .gitignore ../gitignore
git add .
mv ../gitignore .gitignore
git add .gitignore
git commit -m "Add upstream source" --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
git push --force --repo=https://github-actions:${{ secrets.SALSA_TOKEN }}@salsa.debian.org/adrianinsaval/freecad.git
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down
2 changes: 1 addition & 1 deletion make_version_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
f.write(f"commit_hash: {gitInfo.hash}\n")
f.write(f"remote_url: {gitInfo.url}\n")

p = subprocess.Popen(["git", "-c", "user.name='ghaction'", "-c", "user.email='gh@action.org'",
p = subprocess.Popen(["git", "-c", "user.name='github-actions[bot]'", "-c", "user.email='41898282+github-actions[bot]@users.noreply.github.com'",
"commit", "-a", "-m", "add git information"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

out, err = p.communicate()
Expand Down

0 comments on commit 19fa479

Please sign in to comment.