Skip to content

Commit

Permalink
push-to-another workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Sep 13, 2022
1 parent 9c94706 commit e497927
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/push-to-another.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: push to another

on:
push:
branches:
- '*'

jobs:
lint:
runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: bundle
run: VERSION=0.0.3 make bundle.redhat-certified

- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.PAT_GITHUB }}
with:
source-directory: 'bundle/redhat-certified'
destination-github-username: 'pmalek'
destination-repository-name: 'bundle-redhat-certified'
user-email: [email protected]
target-branch: main

0 comments on commit e497927

Please sign in to comment.