Skip to content

Commit

Permalink
Merge pull request #13 from perses/antoinethebaud/dac-absolute-paths
Browse files Browse the repository at this point in the history
dac workflow: change local actions paths to absolute paths
  • Loading branch information
AntoineThebaud authored Dec 19, 2024
2 parents 26605dc + bc566fa commit e4a4d0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,24 @@ jobs:
uses: actions/checkout@v4

- name: Install necessary tools
uses: ./actions/setup_environment
uses: perses/github-actions/actions/setup_environment@main
with:
enable_go: true
enable_cue: true

- name: Install percli
uses: ./actions/install_percli
uses: perses/github-actions/actions/install_percli@main
with:
cli_version: "latest"

- name: Build the dashboards
uses: ./actions/build_dac
uses: perses/github-actions/actions/build_dac@main
with:
directory: ${{ inputs.directory }}
file: ${{ inputs.file }}

- name: Login to the API server
uses: ./actions/login
uses: perses/github-actions/actions/login@main
with:
url: ${{ inputs.url }}
username: ${{ secrets.username }}
Expand All @@ -110,14 +110,14 @@ jobs:
insecure-skip-tls-verify: ${{ inputs.insecure-skip-tls-verify }}

- name: Validate the dashboards
uses: ./actions/validate_resources
uses: perses/github-actions/actions/validate_resources@main
with:
directory: ./built
online: ${{ inputs.server-validation }}

- name: Preview the dashboards
if: ${{ github.event_name == 'pull_request' && !inputs.skip-preview }}
uses: ./actions/preview_dashboards
uses: perses/github-actions/actions/preview_dashboards@main
with:
directory: ./built
project: ${{ inputs.project }}
Expand All @@ -126,14 +126,14 @@ jobs:

- name: Generate dashboards diffs
if: ${{ github.event_name == 'pull_request' && !inputs.skip-diff }}
uses: ./actions/diff_dashboards
uses: perses/github-actions/actions/diff_dashboards@main
with:
directory: ./built
project: ${{ inputs.project }}

- name: Deploy the dashboards
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && !inputs.skip-deploy }}
uses: ./actions/apply_resources
uses: perses/github-actions/actions/apply_resources@main
with:
directory: ./built
project: ${{ inputs.project }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_dac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
url: https://demo.perses.dev
directory: ./testdata/dac_folder
server-validation: true
secrets:
username: ${{ secrets.TEST_USERNAME }}
password: ${{ secrets.TEST_PASSWORD }}

0 comments on commit e4a4d0f

Please sign in to comment.