Skip to content

Commit

Permalink
Updating Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danclough committed Jun 16, 2023
1 parent d291b0b commit a8ccbaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Bump version and push tag
id: tag_version
id: tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
- name: 'Get Previous tag'
id: tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Write version
uses: DamianReeves/write-file-action@master
with:
path: ./VERSION
contents: |
${{ steps.tag.outputs.tag }}
${{ steps.tag.outputs.new_tag }}
write-mode: overwrite
- name: Set up QEMU
id: qemu
Expand All @@ -56,5 +52,5 @@ jobs:
platforms: ${{ steps.qemu.outputs.platforms }}
tags: |
ghcr.io/danclough/amcrest2mqtt:latest
ghcr.io/danclough/amcrest2mqtt:${{ steps.tag.outputs.tag }}
labels: "version=${{ steps.tag.outputs.tag }}"
ghcr.io/danclough/amcrest2mqtt:${{ steps.tag.outputs.new_tag }}
labels: "version=${{ steps.tag.outputs.new_tag }}"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
amcrest~=1.9.7
paho-mqtt~=1.6.1
python-slugify~=8.0.1
python-slugify~=8.0.1

0 comments on commit a8ccbaf

Please sign in to comment.