mirror of
https://github.com/actions/checkout.git
synced 2024-12-27 08:11:03 +08:00
Warn on attempts to publish test-ubuntu-git
from non-main branch. (#1623)
Some checks failed
Build and Test / test-proxy (push) Failing after 7s
Build and Test / test-git-container (push) Failing after 7s
Build and Test / test-bypass-proxy (push) Failing after 40s
Build and Test / test (ubuntu-latest) (push) Failing after 1m43s
Licensed / Check licenses (push) Successful in 9m10s
Check dist / check-dist (push) Failing after 3h9m58s
Build and Test / build (push) Failing after 3h9m52s
Build and Test / test (macos-latest) (push) Has been cancelled
Build and Test / test (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Failing after 5s
Some checks failed
Build and Test / test-proxy (push) Failing after 7s
Build and Test / test-git-container (push) Failing after 7s
Build and Test / test-bypass-proxy (push) Failing after 40s
Build and Test / test (ubuntu-latest) (push) Failing after 1m43s
Licensed / Check licenses (push) Successful in 9m10s
Check dist / check-dist (push) Failing after 3h9m58s
Build and Test / build (push) Failing after 3h9m52s
Build and Test / test (macos-latest) (push) Has been cancelled
Build and Test / test (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Failing after 5s
* Warn on attempts to publish test-ubuntu-git from non-main branch. * Rename build step to clarify that Push is optional.
This commit is contained in:
parent
2650dbd060
commit
b32f140b0c
6
.github/workflows/update-test-ubuntu-git.yml
vendored
6
.github/workflows/update-test-ubuntu-git.yml
vendored
@ -42,8 +42,12 @@ jobs:
|
|||||||
# Use `date` with a custom format to achieve the key=value format GITHUB_OUTPUT expects.
|
# Use `date` with a custom format to achieve the key=value format GITHUB_OUTPUT expects.
|
||||||
run: date -u "+now=%Y%m%d.%H%M%S.%3NZ" >> "$GITHUB_OUTPUT"
|
run: date -u "+now=%Y%m%d.%H%M%S.%3NZ" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Issue Image Publish Warning
|
||||||
|
if: ${{ inputs.publish && github.ref_name != 'main' }}
|
||||||
|
run: echo "::warning::test-ubuntu-git images can only be published from the actions/checkout 'main' branch. Workflow will continue with push/publish disabled."
|
||||||
|
|
||||||
# Use `docker/build-push-action` to build (and optionally publish) the image.
|
# Use `docker/build-push-action` to build (and optionally publish) the image.
|
||||||
- name: Build and push Docker image
|
- name: Build Docker Image (with optional Push)
|
||||||
uses: docker/build-push-action@v5.1.0
|
uses: docker/build-push-action@v5.1.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user