Skip to content

Commit

Permalink
Fix/update wporg related versions (#63)
Browse files Browse the repository at this point in the history
## *What has changed?*:

## *Why was it needed?*:

## *How was it done?*:

## Links to trello Tickets or github issues: 

* 

---

### Code Checklist
- [ ] tested
- [ ] documented
  • Loading branch information
carstingaxion authored May 30, 2024
2 parents 8df9553 + 841c786 commit 213a148
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/prerelease-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:

jobs:
call-workflow-update-changelog:
uses: figuren-theater/.github/.github/workflows/prerelease-changelog-update.yml@main
# uses: figuren-theater/.github/.github/workflows/prerelease-changelog-update.yml@main
uses: figuren-theater/.github/.github/workflows/prerelease-changelog-update.yml@fix/update-wporg-related-versions
secrets: inherit

# @TODO add 'wordpress-org-deploy.yml' && 'wordpress-org-version-numbers.yml' as callable workflows from here.
7 changes: 5 additions & 2 deletions .github/workflows/wordpress-org-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
# release:
# types: [edited]
push:
commit_message: 'Update wporg-related-version to '
commit_message: 'Update version-numbers to '
# branches:
# - main

Expand All @@ -23,7 +23,10 @@ jobs:
name: Deploy to WP.org
runs-on: ubuntu-latest
# if: github.event.release.edited == true && contains(github.event.head_commit.message, 'Update wporg-related-version to ')
if: contains(github.event.head_commit.message, 'Update wporg-related-version to ')
# if: contains(github.event.head_commit.message, 'Update wporg-related-version to ')
if: |
contains(github.event.head_commit.message, 'Update version-numbers to ') &&
contains(github.event.head_commit.modified, 'readme.md')
steps:

# - name: Checkout code
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/wordpress-org-version-numbers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
# commit_message: 'Update version to '
branches:
- main
- NONEXISTENTmain

jobs:
update-version-numbers-for-wp-repository:
Expand All @@ -33,6 +33,7 @@ jobs:
- name: Debug variables
run: |
echo "github.event.release.tag_name: ${{ github.event.release.tag_name }}"
echo "github.event.release.target_commitish: ${{ github.event.release.target_commitish }}"
echo "github.event.head_commit.message: ${{ github.event.head_commit.message }}"
- name: Checkout code
Expand Down

0 comments on commit 213a148

Please sign in to comment.