Skip to content

Commit

Permalink
Fixing release related GHA (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy authored Sep 27, 2021
1 parent 56bc339 commit 1bf8155
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
# Push the Docker image if it is a release
- name: Push Docker image if release
if: ${{ github.head_ref != *"tags"* }}
if: ${{ github.event_name == 'release' }}
run: |
docker tag ${{ steps.get_version.outputs.version }}
docker push jhudsl/course_template
8 changes: 7 additions & 1 deletion .github/workflows/downstream-mechanics-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@master

- name: Get the version
id: get_version
run: |
echo ::set-output name=version::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Run Mechanics File Sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.GH_PAT }}
COMMIT_BODY: "mechanics-update"
COMMIT_BODY: release-${{ steps.get_version.outputs.version }}

0 comments on commit 1bf8155

Please sign in to comment.