generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to Aspect Workflows 5.10.0-rc1
- Loading branch information
1 parent
db924be
commit 29fa2db
Showing
5 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# ================================================================================================== | ||
# Aspect Workflows Reusable Workflow for GitHub Actions (v5.10.0-rc0) | ||
# Aspect Workflows Reusable Workflow for GitHub Actions (v5.10.0-rc1) | ||
# | ||
# https://github.com/marketplace/actions/aspect-workflows?version=5.10.0-rc0 | ||
# https://github.com/marketplace/actions/aspect-workflows?version=5.10.0-rc1 | ||
# | ||
# At this time, GitHub Actions does not allow referencing reusable workflows from public | ||
# repositories in other organizations. See | ||
|
@@ -37,10 +37,10 @@ | |
# jobs: | ||
# aspect-workflows: | ||
# name: Aspect Workflows | ||
# uses: my-github-org/workflows-action/.github/workflows/[email protected]rc0 | ||
# uses: my-github-org/workflows-action/.github/workflows/[email protected]rc1 | ||
# ``` | ||
# ================================================================================================== | ||
name: Aspect Workflows Reusable Workflow (v5.10.0-rc0) | ||
name: Aspect Workflows Reusable Workflow (v5.10.0-rc1) | ||
|
||
on: | ||
# Makes this workflow reusable, see | ||
|
@@ -94,17 +94,17 @@ jobs: | |
ASPECT_WORKFLOWS_CONFIG: ${{ inputs.aspect-config }} | ||
|
||
steps: | ||
- name: Configure environment | ||
- name: Workflows environment | ||
run: ${{ fromJson(needs.setup.outputs.cfg).platform.directories.WORKFLOWS_BIN_DIR }}/configure_workflows_env | ||
|
||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Agent health checks | ||
- name: Agent health check | ||
run: ${{ fromJson(needs.setup.outputs.cfg).platform.directories.WORKFLOWS_BIN_DIR }}/agent_health_check | ||
timeout-minutes: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].health_check_timeout }} | ||
|
||
- name: Process Secrets | ||
- name: Process secrets | ||
id: process_secrets | ||
if: inputs.inherited_secrets != '' | ||
run: | | ||
|
@@ -123,23 +123,23 @@ jobs: | |
write_output_files: true | ||
output_dir: ${{ fromJson(needs.setup.outputs.cfg).platform.directories.ARTIFACTS_DIR }} | ||
|
||
- name: Checkout Health | ||
uses: aspect-build/[email protected]rc0 | ||
- name: Checkout health | ||
uses: aspect-build/[email protected]rc1 | ||
timeout-minutes: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].checkout_task_timeout }} | ||
if: fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].has_checkout_task | ||
with: | ||
workspace: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].workspace }} | ||
task: checkout | ||
|
||
- name: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].name }} | ||
uses: aspect-build/[email protected]rc0 | ||
uses: aspect-build/[email protected]rc1 | ||
env: ${{ inputs.inherited_secrets != '' && fromJson(steps.process_secrets.outputs.filtered_secrets) || fromJson('{}') }} | ||
timeout-minutes: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].timeout_in_minutes }} | ||
with: | ||
workspace: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].workspace }} | ||
task: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].task }} | ||
|
||
- name: Send notification to Slack workflow | ||
- name: Send notification to Slack | ||
id: slack | ||
# oncall cares about branches that do delivery, so key this on whether we produce a delivery manifest | ||
if: inputs.slack_webhook_url != '' && failure() && fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].generate_manifest | ||
|
@@ -152,17 +152,17 @@ jobs: | |
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets[inputs.slack_webhook_url] }} | ||
|
||
- name: Delivery Manifest | ||
- name: Delivery manifest | ||
if: fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].generate_manifest | ||
uses: aspect-build/[email protected]rc0 | ||
uses: aspect-build/[email protected]rc1 | ||
timeout-minutes: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].delivery_manifest_timout }} | ||
with: | ||
workspace: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].workspace }} | ||
task: delivery_manifest | ||
args: "--data TARGETS_SOURCE=${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].task }}" | ||
|
||
# Upload all artifacts for the workspace | ||
- name: Upload Artifact | ||
- name: Upload artifacts | ||
# The `always()` condition makes this step run even if a previous step failed. | ||
# Setting `continue-on-error: true` on previous steps isn't ideal as the UI | ||
# will flag them as having passed even if they failed. | ||
|
@@ -174,7 +174,7 @@ jobs: | |
overwrite: true | ||
|
||
# Codecov | ||
- name: Codecov Upload | ||
- name: Codecov upload | ||
# The `always()` condition makes this step run even if a previous step failed. | ||
# Setting `continue-on-error: true` on previous steps isn't ideal as the UI | ||
# will flag them as having passed even if they failed. | ||
|
@@ -188,7 +188,7 @@ jobs: | |
# by the bazel convenience symlinks and finds the same coverage report | ||
# under bazel-out and {workspace}/bazel-out. | ||
|
||
- name: Trigger Delivery | ||
- name: Trigger delivery | ||
# This uses the following API: https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event | ||
run: | | ||
curl \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters