Skip to content

Commit

Permalink
fix(workflow): added git pull to update before next step
Browse files Browse the repository at this point in the history
  • Loading branch information
YannouRavoet committed Dec 6, 2021
1 parent 127f52c commit 1403d29
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v2
- uses: ./.github/workflows/composite/visualizations
- run: git pull

# PERFORM TAGGING, RELEASING, PUBLISHING, CHANGELOG UPDATE
tag-release-publish-changelog:
Expand All @@ -68,6 +69,14 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false

# Update Changelog
- name: Update Changelog
uses: ./.github/workflows/composite/changelog
if: ${{ contains(fromJson('["major", "minor", "patch"]'), steps.create_tag.outputs.release_type) }}
with:
changes: ${{ steps.create_tag.outputs.changelog }}
- run: git pull

# Create release from tag
- name: Create a GitHub release
if: ${{ contains(fromJson('["major", "minor", "patch"]'), steps.create_tag.outputs.release_type) }}
Expand All @@ -77,13 +86,6 @@ jobs:
name: Release ${{ steps.create_tag.outputs.new_tag }}
body: ${{ steps.create_tag.outputs.changelog }}

# Update Changelog
- name: Update Changelog
uses: ./.github/workflows/composite/changelog
if: ${{ contains(fromJson('["major", "minor", "patch"]'), steps.create_tag.outputs.release_type) }}
with:
changes: ${{ steps.create_tag.outputs.changelog }}

# Publish package to PyPI
- name: Publish package to PyPI
uses: ./.github/workflows/composite/publishing
Expand Down

0 comments on commit 1403d29

Please sign in to comment.