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 17, 2024
1 parent f04a96e commit 06d4d19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publication-accepted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
VERSION=$(jq -r '.version' publication-request.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
# Capture the current branch and set it as an output
- name: Get current branch
run: echo "BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
id: get_branch
run: echo "::set-output name=BRANCH::$(git rev-parse --abbrev-ref HEAD)"


# Create a release and tag with the version
- name: Create release and tag
Expand All @@ -39,5 +42,4 @@ jobs:
- 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

branch: ${{ steps.get_branch.outputs.BRANCH }} # Pass the current branch to the remote workflow

0 comments on commit 06d4d19

Please sign in to comment.