Skip to content

Commit

Permalink
🚑 Hotfix deployment 5
Browse files Browse the repository at this point in the history
  • Loading branch information
heavynimbus committed Jul 12, 2024
1 parent de300b8 commit 526b21c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/upgrade-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ name: Upgrade Version and Deploy

on:
pull_request:
types: [ closed ]
types:
- closed
branches:
- 'main'

jobs:
upgrade-version:
runs-on: ubuntu-latest

if: ${{ github.event.pull_request.merged == true }}

permissions:
contents: write

Expand Down Expand Up @@ -73,6 +76,8 @@ jobs:
run: git tag ${{ steps.versions.outputs.next_version }} HEAD

- name: Git Push changes and tags
with:
token: ${{ secrets.GITHUB_TOKEN }}
run: git push --force origin HEAD:${{ github.ref_name }} --tags

- name: Build Docker image ${{ steps.versions.outputs.next_version }}
Expand All @@ -99,4 +104,6 @@ jobs:
run: git commit -m "⬆️ Upgrade version to ${{ steps.versions.outputs.new_snapshot }}"

- name: Git Push changes
with:
token: ${{ secrets.GITHUB_TOKEN }}
run: git push --force origin HEAD:${{ github.ref_name }}

0 comments on commit 526b21c

Please sign in to comment.