Skip to content

Commit

Permalink
feat: GH actions migration
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-form3 committed Oct 11, 2023
1 parent 19ea2bc commit ab1070d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/calculate-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ jobs:
outputs:
tag: "${{ steps.tag.outputs.tag }}"
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Determine latest upstream release tag
- name: Get the tag name
if: contains(github.ref, 'refs/tags/')
id: latest_tag
if: "!contains(github.ref,'refs/tags/')"
run: |
latest_tag=$(git describe --abbrev=0 --tags)
latest_tag=""
echo "latest_tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
if [[ "${{ github.ref_type }}" = "tag" ]]; then
latest_tag="${GITHUB_REF#refs/tags/}"
else
latest_tag=$(git describe --abbrev=0 --tags)
fi
echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT
- name: Get the tag name
if: contains(github.ref, 'refs/tags/')
id: tag_name
run: echo "latest_tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Calculate pre-release suffix
id: tag-suffix
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: make crossbuild
- name: Package
run: make crossbuild-tarballs
- run: ls -latr
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ab1070d

Please sign in to comment.