-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the github workflows to use the callable workflows in the `slapshot-reusable-workflows` repo. J=SLAP-2005 TEST=auto - See that the `coverage`, `update_docs`, and `run_tests` workflows run on this PR as expected. - Test on another branch (`dev/test-reusable-workflows`) and see that docs are updated when needed. - Fork the repo and commit to master. See that the `sync_develop_and_main` workflow creates a PR as expected.
- Loading branch information
Showing
4 changed files
with
17 additions
and
78 deletions.
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
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
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,27 +1,11 @@ | ||
name: create PR from main to develop | ||
name: Create PR from main to develop | ||
|
||
on: | ||
push: | ||
branches: [main, master] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
createPullRequest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: extract package version | ||
id: vars | ||
run: | | ||
PACKAGE_VERSION="v$(cat ./package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" | ||
echo ::set-output name=tag::${PACKAGE_VERSION} | ||
- uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: "${{ github.event.repository.default_branch }}" | ||
destination_branch: "develop" | ||
pr_title: "Merge ${{ github.event.repository.default_branch }} (${{ steps.vars.outputs.tag }}) into develop" | ||
pr_body: "Merge ${{ github.event.repository.default_branch }} (${{ steps.vars.outputs.tag }}) into develop" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
call_sync_develop_and_main: | ||
uses: yext/slapshot-reusable-workflows/.github/workflows/sync_develop_and_main.yml@v1 | ||
secrets: | ||
caller_github_token: ${{ secrets.GITHUB_TOKEN }} |
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