Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ env:

on:
workflow_dispatch:
pull_request_target:
pull_request:
branches: [ main, release** ]
types:
- closed

jobs:
echo-var:
Expand All @@ -22,7 +20,7 @@ jobs:

bump-version:
runs-on: ubuntu-latest
if: github.event.action == 'closed' && github.event.pull_request.merged == true
if: contains(github.base_ref, 'main') && github.event_name == 'pull_request'
steps:
- shell: bash
run: |
Expand All @@ -31,13 +29,16 @@ jobs:
mkdir -p ${{ github.workspace }}

- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: bump assembly patch version
if: github.ref == 'refs/heads/main'
run: echo "ouch"

- name: commit files
run: |
date > generated.txt
date > README.md
git config user.email github-actions@github.com
git config user.name "github-actions"
#git remote set-url origin https://x-access-token:${{secrets.github_token}}@github.maybank.com/${{github.repository}}
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# github-pages-test

update readme
Mon Dec 12 02:06:11 UTC 2022