Trigger from Workflow (#2951)

This commit is contained in:
Yuhong Sun
2024-10-27 15:18:46 -07:00
committed by GitHub
parent dc7b367816
commit 7ea484aee2
2 changed files with 6 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
name: Build and Push Backend Image on Tag
on:
push:
create:
tags:
- '*'

View File

@@ -6,7 +6,8 @@ on:
permissions:
contents: write
actions: write # Allows the workflow to trigger other workflows on push
actions: write
workflows: write
jobs:
backport:
@@ -81,7 +82,7 @@ jobs:
}
# Create new beta tag
git tag ${{ steps.list-branches.outputs.new_beta_tag }}
# Push the changes and tag to the beta branch
# Push the changes and tag to the beta branch using PAT
git push origin ${{ steps.list-branches.outputs.beta }} --force
git push origin ${{ steps.list-branches.outputs.new_beta_tag }}
# Checkout the stable branch
@@ -93,6 +94,6 @@ jobs:
}
# Create new stable tag
git tag ${{ steps.list-branches.outputs.new_stable_tag }}
# Push the changes and tag to the stable branch
# Push the changes and tag to the stable branch using PAT
git push origin ${{ steps.list-branches.outputs.stable }} --force
git push origin ${{ steps.list-branches.outputs.new_stable_tag }}
git push origin ${{ steps.list-branches.outputs.new_stable_tag }}