0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-01-23 02:19:05 -05:00
forgejo-docs/user/actions.md
Earl Warren ac06f28fdd
docs: actions user documentation
# Conflicts:
#	user/actions.md
2023-08-13 13:57:50 +01:00

1.3 KiB

layout title license
~/layouts/Markdown.astro Forgejo Actions CC-BY-SA-4.0

Forgejo Actions provides continuous integration driven from the files in the .forgejo/workflows directory of a repository.

Quick start

  • Verify that Enable Repository Actions is checked in the Repository tab of the /{owner}/{repository}/settings page.

enable actions

  • Add the following to the .forgejo/workflows/demo.yaml file in the repository.
on: [push]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - run: echo All Good

demo.yaml file

  • Go to the Actions tab of the /{owner}/{repository}/actions page of the repository to see the result of the run.

actions results

  • Click on the workflow link to see the details and the job execution logs.

actions results

Glossary

  • workflow: a file in the .forgejo/workflows directory that contains jobs.
  • job: a sequential set of steps.
  • step: a command the runner is required to carry out.
  • runner: the Forgejo runner daemon tasked to execute the workflows.