-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing action changes from previous PR
Signed-off-by: Kemal Akkoyun <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,10 +104,9 @@ jobs: | |
path: offsets-python | ||
retention-days: 1 | ||
|
||
create-branch: | ||
merge-and-create-branch: | ||
runs-on: ubuntu-latest | ||
needs: generate | ||
if: github.event_name != 'pull_request' | ||
steps: | ||
- name: Check out the code | ||
uses: actions/[email protected] | ||
|
@@ -140,20 +139,25 @@ jobs: | |
path: offsets-python | ||
merge-multiple: true | ||
|
||
- name: Merge offsets | ||
- name: Print the layout files | ||
run: tree offsets-python | ||
|
||
- name: Merge the layout files | ||
run: | | ||
ls -al offsets-python | ||
./mergelayout -o pkg/python/versions offsets-python/python_*.yaml | ||
./mergelayout -o pkg/python/layout offsets-python/layout/python_*.yaml | ||
./mergelayout -o pkg/python/initialstate offsets-python/initialstate/python_*.yaml | ||
# If there are no changes (i.e. no diff exists with the checked-out base branch), | ||
# no pull request will be created and the action exits silently. | ||
- name: Create a pull-request | ||
if: github.event_name != 'pull_request' | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "chore: update python layouts" | ||
title: "chore: Update Python layouts" | ||
branch: update-python-offsets-${{ github.run_number }} | ||
add-paths: pkg/python/layout, pkg/python/initialstate | ||
base: main | ||
labels: chore | ||
draft: false | ||
|
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 |
---|---|---|
|
@@ -97,10 +97,9 @@ jobs: | |
path: offsets-ruby | ||
retention-days: 1 | ||
|
||
create-branch: | ||
merge-and-create-branch: | ||
runs-on: ubuntu-latest | ||
needs: generate | ||
if: github.event_name != 'pull_request' | ||
steps: | ||
- name: Check out the code | ||
uses: actions/[email protected] | ||
|
@@ -133,20 +132,24 @@ jobs: | |
path: offsets-ruby | ||
merge-multiple: true | ||
|
||
- name: Merge offsets | ||
- name: Print the layout files | ||
run: tree offsets-ruby | ||
|
||
- name: Merge the layout files | ||
run: | | ||
ls -al offsets-ruby | ||
./mergelayout -o pkg/ruby/versions offsets-ruby/ruby_*.yaml | ||
./mergelayout -o pkg/ruby/layout offsets-ruby/layout/ruby_*.yaml | ||
# If there are no changes (i.e. no diff exists with the checked-out base branch), | ||
# no pull request will be created and the action exits silently. | ||
- name: Create a pull-request | ||
uses: peter-evans/create-pull-request@v6 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "chore: update ruby layouts" | ||
title: "chore: Update Ruby layouts" | ||
branch: update-ruby-offsets-${{ github.run_number }} | ||
add-paths: pkg/ruby/layout | ||
base: main | ||
labels: chore | ||
draft: false | ||
|