ci: test docs deployment from actions-hardening branch

This commit is contained in:
Maximilian Hils 2021-05-10 10:50:06 +02:00
parent 773e0e6f40
commit 30cfb7a814
2 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ jobs:
name: web
docs:
if: github.repository != 'mitmproxy/mitmproxy' || github.ref != 'refs/heads/main'
if: github.repository != 'mitmproxy/mitmproxy' || github.ref != 'refs/heads/actions-hardening'
# mirrored below >>>
runs-on: ubuntu-latest
steps:
@ -143,7 +143,7 @@ jobs:
# so we make sure to really pin everything here.
deploy-docs:
if: github.repository == 'mitmproxy/mitmproxy' && github.ref == 'refs/heads/main'
if: github.repository == 'mitmproxy/mitmproxy' && github.ref == 'refs/heads/actions-hardening'
environment: deploy-docs
# mirrored above >>>
runs-on: ubuntu-latest

View File

@ -5,7 +5,7 @@ set -o pipefail
set -o nounset
# set -o xtrace
if [[ $GITHUB_REF != "refs/heads/main" ]]; then
if [[ $GITHUB_REF != "refs/heads/actions-hardening" ]]; then
echo "Looks like we are not running on CI."
exit 1
fi