From a8ccbaf2e07bc115af5e979fc295ac4eb8f7cc80 Mon Sep 17 00:00:00 2001 From: Dan Clough Date: Fri, 16 Jun 2023 12:57:18 -0500 Subject: [PATCH] Updating Actions --- .github/workflows/publish.yml | 12 ++++-------- requirements.txt | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d95efd9..838de92 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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/github-tag-action@v6.1 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 @@ -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 }}" diff --git a/requirements.txt b/requirements.txt index 7696597..07594e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ amcrest~=1.9.7 paho-mqtt~=1.6.1 -python-slugify~=8.0.1 \ No newline at end of file +python-slugify~=8.0.1