1.1.1 • Published 3 years ago

package-version-action v1.1.1

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

🔖 Package Version Action

GitHub Action to get the latest release version and a SHA suffix for unique versions.

Build CI Test CI Release CI Node CI

⭐ Get started

This Action returns a recommend image name. For example, if you want to publish a new Docker image:

name: Docker CI
on:
  workflow_dispatch:
jobs:
  test:
    name: Deploy to Docker
    runs-on: ubuntu-latest
    steps:
      - name: Get package version
        id: package-version
        uses: koj-co/package-version-action@v1.0.1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: Build and push to Docker
        uses: docker/build-push-action@v2
        with:
          push: true
          tags: username/anand:${{ steps.package-version.outputs.package-version }}
          # ->  username/anand:v1.23.21

Outputs

Output nameDescriptionExample value
package-versionLatest release versionv2.23.1
package-version-timestampVersion + unix timestampv2.23.1-1609693587
short-hashLast commit hash1abc9c3
package-version-short-hashVersion + commit hashv2.23.1-1abc9c3
package-version-randomVersion + random stringv2.23.1-238a32ef21
date-hashDate + commit hash2020-12-29-238a32ef21
date-time-hashISO datetime + commit hash2020-12-29T09:35:34.759Z-238a32ef21

📄 License

  • Code: MIT © Koj
  • "GitHub" is a trademark of GitHub, Inc.
1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago