Skip to content

Commit

Permalink
Merge pull request #122 from inbo/update-GHA
Browse files Browse the repository at this point in the history
Update gha that publishes website
  • Loading branch information
hansvancalster authored Jun 21, 2024
2 parents 5128e92 + 77a7f03 commit 9f35420
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/update_website.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: On merge of "Log RECENT_MERGED_BRANCH_NAME" to main, build the protocol and add it to the website
name: On merge of protocol branch to main, build the protocol and add it to the website

on:
push:
Expand All @@ -10,9 +10,14 @@ jobs:
runs-on: ubuntu-latest
name: "add protocol to website"
steps:
- name: lookup branch name
uses: actions/checkout@v2
- uses: tonynguyenit18/github-action-custom-vars@v1
- name: checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Get branch name of latest merged PR targeting main
run: |
RECENT_MERGED_BRANCH_NAME=$(git log --merges origin/main --oneline --grep='^Merge' -1 | grep -oe 'inbo/.*$' | awk -F '/' '{print $2}')
echo "RECENT_MERGED_BRANCH_NAME=$RECENT_MERGED_BRANCH_NAME" >> $GITHUB_ENV
- name: test
run: echo 'branch name =' $RECENT_MERGED_BRANCH_NAME
- name: Checkout repo and build website
Expand Down

0 comments on commit 9f35420

Please sign in to comment.