Skip to content

Commit

Permalink
Update GHA workflow for chart sync
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Oct 23, 2024
1 parent 8ac21c5 commit 581784f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/scrape.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,17 @@ jobs:
- name: Check to proceed
id: check_to_proceed
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'schedule' ||
(github.event_name == 'issues' && github.event.action == 'opened')
shell: pwsh
run: |
$proceed = "false"
if ($env:GITHUB_EVENT_NAME -eq "workflow_dispatch") {
$proceed = "true"
} elseif ($env:GITHUB_EVENT_NAME -eq "schedule") {
if ("${{ github.event_name }}" -eq "workflow_dispatch") {
$proceed = "true"
} elseif ($env:GITHUB_EVENT_NAME -eq "issues" -and $env:GITHUB_EVENT_ACTION -eq "opened") {
} elseif ("${{ github.event_name }}" -eq "schedule") {
$proceed = "true"
} elseif ("${{ github.event_name }}" -eq "issues" -and "${{ github.event.action }}" -eq "opened") {
if ("${{ github.event.issue.body }}" -eq "### Issue Type\n\nSync Request") {
$proceed = "true"
}
}
"proceed=$proceed" >> $env:GITHUB_OUTPUT
Expand Down

0 comments on commit 581784f

Please sign in to comment.