Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for composite action #1343

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Sep 3, 2024

Description

This PR makes some tweaks to JIMM composite action.

  • Use the working_dir keyword when referencing scripts in the repo alongside the ${{ github.action_path }} context variable.
  • Ensure service account in the integration test is a JIMM admin.

I've tested these changes here.

@kian99 kian99 requested a review from a team as a code owner September 3, 2024 08:00
shell: bash
working-directory: ${{ github.action_path }}/../../..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting...

shell: bash
working-directory: ${{ github.action_path }}/../../..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second answer mentions that it should be possible to set a default work dir for each step in a action:
https://stackoverflow.com/questions/58139175/running-actions-in-another-directory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately it's not supported in composite actions, see Github's design doc here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in a follow up PR we will try the default on top of the job list, like so:

name: CI

on:
 ...

defaults:
 run:
  working-directory: ./app

@kian99 kian99 merged commit 392c265 into canonical:v3 Sep 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants