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 617d382 commit f04a96e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publication-accepted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
VERSION=$(jq -r '.version' publication-request.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Get current branch
run: echo "BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV

# Create a release and tag with the version
- name: Create release and tag
uses: actions/create-release@v1
Expand All @@ -32,10 +35,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Job to trigger the reusable workflow
trigger_remote_workflow:
needs: create_release_and_tag
uses: WorldHealthOrganization/smart-html/.github/workflows/release.yml@main
with:
branch: ${{ env.BRANCH }} # Pass the current branch to the remote workflow
# 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 f04a96e

Please sign in to comment.