Skip to content

Git push from a manual workflow it doesn't trigger other on-push workflow #25424

Answered by haizaar
haizaar asked this question in Actions
Discussion options

You must be logged in to vote

After more research, using a deploy key results in quite reasonable setup to achieve what I want:

  • Created dedicated SSH key pair on my computer.
  • Registered the public part as a deploy key for the repo in question with write access
  • Loaded the private part as the DEPLOY_KEY_CI_TAGGING GH Secret

Here is the full workflow:

name: Tag

on:
workflow_dispatch: {}

jobs:
tag:
name: Tag new version
runs-on: ubuntu-latest

steps:
- name: Checkout
  uses: actions/checkout@v2
  with:
    fetch-depth: 0

# https://github.community/t/git-push-from-a-manual-workflow-it-doesnt-trigger-other-on-push-workflow/139190/5
- name: Switch git credentials to RW
  uses: webfactory/ssh-agent@v0.4.1
  with:
    ssh-p…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants