Skip to content

Commit

Permalink
Update publication-accepted.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira authored Oct 15, 2024
1 parent ae480cd commit cba0eac
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/publication-accepted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:
if: contains(github.event.issue.labels.*.name, 'Build OK') && contains(github.event.issue.labels.*.name, 'publication-request')
runs-on: ubuntu-latest
steps:
# Checkout repository
- name: Checkout repository
uses: actions/checkout@v2

# Read the version from publication-request.json in the release-candidate branch
# Fetch release-candidate branch and read version from publication-request.json
- name: Get version from publication-request.json
run: |
git fetch origin release-candidate
Expand All @@ -34,4 +35,19 @@ jobs:
# Job to trigger the reusable workflow
trigger_remote_workflow:
needs: create_release_and_tag
uses: WorldHealthOrganization/smart-html/.github/workflows/release.yml@main
runs-on: ubuntu-latest
steps:
# Checkout the branch to determine the current branch name
- name: Checkout repository
uses: actions/checkout@v2

# Get the current branch name
- name: Get current branch
id: get_branch
run: echo "BRANCH=$(git branch --show-current)" >> $GITHUB_ENV

# Trigger the remote reusable workflow and pass the current branch
- name: Trigger remote workflow
uses: WorldHealthOrganization/smart-html/.github/workflows/release.yml@main
with:
branch: ${{ env.BRANCH }} # Pass the current branch to the remote workflow

0 comments on commit cba0eac

Please sign in to comment.