Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danclough committed Jun 16, 2023
1 parent 64fe725 commit 4febf90
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get next version
uses: reecetech/[email protected]
id: version
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
scheme: semver
increment: patch
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Write version
uses: DamianReeves/write-file-action@master
with:
path: ./VERSION
contents: |
${{ steps.version.outputs.version }}
${{ steps.tag_version.outputs.new_tag }}
write-mode: overwrite
- name: Set up QEMU
id: qemu
Expand All @@ -53,5 +52,5 @@ jobs:
platforms: ${{ steps.qemu.outputs.platforms }}
tags: |
ghcr.io/danclough/amcrest2mqtt:latest
ghcr.io/danclough/amcrest2mqtt:${{ steps.version.outputs.version }}
labels: "version=${{ steps.version.outputs.version }}"
ghcr.io/danclough/amcrest2mqtt:${{ steps.tag_version.outputs.new_tag }}
labels: "version=${{ steps.tag_version.outputs.new_tag }}"

0 comments on commit 4febf90

Please sign in to comment.