Compare commits
8 Commits
test2
...
fd10257f50
Author | SHA1 | Date | |
---|---|---|---|
|
fd10257f50 | ||
|
6598f6b95b | ||
|
80580710fc | ||
|
6d0f2da52b | ||
|
c5dd94c995 | ||
|
1db19d9160 | ||
2ac75ce7a2 | |||
08b0a8786f |
@@ -9,10 +9,10 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: https://git.phyllo.me/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/release-action@main
|
- uses: https://git.phyllo.me/actions/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
bin/**
|
bin/**
|
26
README.md
26
README.md
@@ -1,3 +1,25 @@
|
|||||||
# tests-actions
|
# Gitea Actions testing ground
|
||||||
|
|
||||||
This repository is meant to test Gitea actions
|
This repository is a testing ground for several Gitea Actions used within the Phyllome OS project.
|
||||||
|
|
||||||
|
Gitea Actions closely resemble GitHub Actions, to the point that several GitHub Actions can be used in Gitea Actions workflows without modification.
|
||||||
|
|
||||||
|
## How to test actions locally
|
||||||
|
|
||||||
|
Download the latest version of the act runner for your architecture [here](https://dl.gitea.com/act_runner/)
|
||||||
|
|
||||||
|
Execute the act runner using the `exec` argument and specify the workflow file:
|
||||||
|
|
||||||
|
```
|
||||||
|
./act_runner exec --workflows checkout.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
## How they are used in Phyllome OS
|
||||||
|
|
||||||
|
Several known actions repositories are mirrored within Phyllome's Gitea instance, under the [actions](https://git.phyllo.me/actions) organization.
|
||||||
|
|
||||||
|
# Good resources
|
||||||
|
|
||||||
|
- [Official Gitea Action documentation](https://docs.gitea.com/usage/actions/quickstart)
|
||||||
|
- [Awesome Actions](https://github.com/sdras/awesome-actions#workflow-examples)
|
||||||
|
- [GitHub Actions Survival Skills](https://thekevinwang.com/2022/06/13/github-actions-survival-skills)
|
15
workflows/checkout.yml
Normal file
15
workflows/checkout.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: checkout
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checkout:
|
||||||
|
runs-on: ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: https://git.phyllo.me/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
23
workflows/list-files-and-path.yml
Normal file
23
workflows/list-files-and-path.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Echo Current Path and List Files
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # Or your desired branch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
echo-path:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: https://git.phyllo.me/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
steps:
|
||||||
|
- name: Echo Current Path
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
echo "Current working directory:"
|
||||||
|
- name: List Files
|
||||||
|
run: |
|
||||||
|
ls -la
|
||||||
|
echo "Files in current directory:"
|
19
workflows/release-tag.yml
Normal file
19
workflows/release-tag.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: https://git.phyllo.me/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: https://git.phyllo.me/actions/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
bin/**
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
Reference in New Issue
Block a user