-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Labels
Description
Description
General
Hi,
I found that the jobs.<jobid>.if
property does not work with Gitea Actions.
(Side Note: The steps if does work)
I had a look inside the docs and there I only found that jobs.<jobid>.continue-on-error
is not supported but I did not found something for the if property.
Is this feature supported (So a bug) or is this ignored as well (then maybe this can be added in the docs)?
Reproduction
System
- Host Machine
- Debian GNU/Linux 10 (buster)
- Docker Swarm (Server Version: 23.0.1)
- Gitea and Act Runner Hosted as Docker Swarm Stack
- Gitea 1.20.0+rc0 ( Docker Image: gitea/gitea:latest )
- Act Runner v0.2.3 ( Docker Image: gitea/act_runner:latest )
Workflow
File: .gitea/workflows/bug.yml
name: Reproduction of "jobs.<jobid>.if" bug
on: push
jobs:
failing:
runs-on: ubuntu-latest
steps:
- name: Let the job fail
run: exit 1
report:
runs-on: ubuntu-latest
needs: failing
if: ${{ failure() }}
steps:
- name: Execute
run: echo This should run...
Gitea Version
1.20.0+rc0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
Debian GNU/Linux 10 (buster) - Docker Image: gitea/gitea:latest & gitea/act_runner:latest
How are you running Gitea?
- Host Machine
- Debian GNU/Linux 10 (buster)
- Docker Swarm (Server Version: 23.0.1)
Docker Stack Compose File:
version: "3"
networks:
gitea:
volumes:
data:
runner_data:
services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__security__SECRET_KEY=<SECRET>
- GITEA__security__INTERNAL_TOKEN=<TOKEN>
- GITEA__service__DISABLE_REGISTRATION=true
- GITEA__server__LFS_START_SERVER=true
- GITEA__server__START_SSH_SERVER=true
- GITEA__server__SSH_PORT=222
- GITEA__server__SSH_LISTEN_PORT=222
- GITEA__server__SSH_DOMAIN=<DOMAIN>
- GITEA__actions__ENABLED=true
restart: always
networks:
- gitea
volumes:
- data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "8081:3000"
- "222:222"
runner:
image: gitea/act_runner:latest
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: https://<DOMAIN>
GITEA_RUNNER_REGISTRATION_TOKEN: <REG_TOKEN>
GITEA_RUNNER_NAME: "Gitea Runner"
volumes:
- runner_data:/data
- /docker/configs/gitea_runner/config.yaml:/config.yaml
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8088:8088"
I applied a config file to the Act Runner to fix the actions/cache Action like mentioned in the Gitea Docs.
It only includes the cache properties.
Database
SQLite
ztimson, pryorda and Zettat123zoy0 and pryorda