Skip to content

Commit

Permalink
Add missing action changes from previous PR
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <[email protected]>
  • Loading branch information
kakkoyun committed Feb 14, 2024
1 parent 8d0a1f8 commit 4fe3c11
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/generate-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/generate-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4fe3c11

Please sign in to comment.