Skip to content

Commit

Permalink
Merge pull request #7 from ConductorOne/mchavez-fix-release-v2
Browse files Browse the repository at this point in the history
Adding repo-sync workflow
  • Loading branch information
ggreer authored Jul 2, 2024
2 parents e7d1b20 + 396fc59 commit 6e64bb7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ci
on: pull_request
on:
workflow_dispatch:
pull_request:
jobs:
go-lint:
runs-on: ubuntu-latest
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: repo-sync
on:
# Allow this workflow to be manually triggered
workflow_dispatch:
env:
SOURCE_BRANCH: main
SOURCE_REPOSITORY: ConductorOne/baton-template
jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v4
if: github.repository != env.SOURCE_REPOSITORY
with:
token: ${{ secrets.REPO_SYNC_PAT }}
- name: actions-template-sync
uses: AndreasAugustin/[email protected]
if: github.repository != env.SOURCE_REPOSITORY
with:
github_token: ${{ secrets.REPO_SYNC_PAT }}
source_repo_path: ${{ env.SOURCE_REPOSITORY }}
upstream_branch: ${{ env.SOURCE_BRANCH }}
pr_title: "Fix release to work with goreleaser v2"
pr_commit_msg: "Fix release to work with goreleaser v2"

0 comments on commit 6e64bb7

Please sign in to comment.