-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ConductorOne/mchavez-fix-release-v2
Adding repo-sync workflow
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |