Skip to content

Gitea Action didn't use last commit when action is triggered by schdule #32219

Closed
@ChaojuWang

Description

@ChaojuWang

Description

I set up a workflow to exec routine action every day but the action uses outdated commit when checkout the code.
image
image
image
It seems that the action checkout the 2rd commit during running.

here is part of my workflow

name: XXX

on:
  schedule: # execute every 24 hours
    - cron: "35 6 * * *"
...
 steps:
    - name: XXX
      uses: actions/checkout@v4
      with:
        path: xxx
...

Gitea Version

1.22.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.45.2

Operating System

Docker 27.0.3 in Ubuntu 22.04.4 LTS

How are you running Gitea?

Docker 27.0.3 in Ubuntu 22.04.4 LTS
start both Gitea and runner by docker-compose

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions