Skip to content

Commit

Permalink
Fix: Adjust cache key for release and mattermost-notify virtualenvs
Browse files Browse the repository at this point in the history
Sadly github.action evaluates to the same string in all our actions due
to our single actions repo usage. Therefore set a distinct key for the
release and mattermost-notify Python virtual environments in the cache.
  • Loading branch information
bjoernricks committed May 8, 2023
1 parent def96a4 commit 2693507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mattermost-notify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ runs:
- name: Virtual Environment
id: virtualenv
run: |
echo "path=${{ github.action_path }}/${{ github.action }}-venv" >> $GITHUB_OUTPUT
echo "name=${{ github.action }}-venv" >> $GITHUB_OUTPUT
echo "path=${{ github.action_path }}/mattermost-notify-venv" >> $GITHUB_OUTPUT
echo "name=mattermost-notify-venv" >> $GITHUB_OUTPUT
shell: bash
- name: Cache Virtual Environment
id: cache-virtualenv
Expand Down
4 changes: 2 additions & 2 deletions release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ runs:
- name: Virtual Environment
id: virtualenv
run: |
echo "path=${{ github.action_path }}/${{ github.action }}-venv" >> $GITHUB_OUTPUT
echo "name=${{ github.action }}-venv" >> $GITHUB_OUTPUT
echo "path=${{ github.action_path }}/release-action-venv" >> $GITHUB_OUTPUT
echo "name=release-action-venv" >> $GITHUB_OUTPUT
shell: bash
- name: Cache Virtual Environment
id: cache-virtualenv
Expand Down

0 comments on commit 2693507

Please sign in to comment.