Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci apt fix version #2153

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ jobs:

# Update apt repo
update-apt-repo:
if: startsWith(github.ref, 'refs/tags/v')
#if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
container:
image: debian:experimental
Expand Down Expand Up @@ -694,11 +694,12 @@ jobs:
- name: "Get the version"
id: get_version
run: |
echo ::set-output name=version::$(ls ../deb/*amd64.changes | sed -e 's/.*acton_//' -e 's/_amd64.*//')
echo "VERSION=$(ls ../deb/*amd64.changes | sed -e 's/.*acton_//' -e 's/_amd64.*//')" >> $GITHUB_ENV
- name: "Include new deb in Apt repository"
run: |
cd apt
reprepro include stable ../deb/*.changes
reprepro include stable ../deb/*amd64.changes
reprepro include stable ../deb/*arm64.changes
- name: "Push updates to git repository for apt.acton-lang.io"
run: |
cd apt
Expand All @@ -707,7 +708,7 @@ jobs:
git add .
git status
git diff
git commit -a -m "Add Acton v${{steps.get_version.outputs.version}}"
git commit -a -m "Add Acton v${VERSION}"
git push

# Update apt tip repo
Expand Down Expand Up @@ -742,7 +743,6 @@ jobs:
id: get_version
run: |
echo "VERSION=$(ls deb/*amd64.changes | sed -e 's/.*acton_//' -e 's/_amd64.*//')" >> $GITHUB_ENV
echo ::set-output name=version::$(ls deb/*amd64.changes | sed -e 's/.*acton_//' -e 's/_amd64.*//')
- name: "Move .deb files in place"
run: |
cd apt
Expand Down
Loading