Compare commits
No commits in common. "main" and "2" have entirely different histories.
4 changed files with 29 additions and 25 deletions
|
@ -1,20 +0,0 @@
|
||||||
name: on push
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: docker
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.MAINTAINER_TOKEN }}
|
|
||||||
|
|
||||||
- name: Push Git Tag
|
|
||||||
run: |
|
|
||||||
git tag ${{ github.run_number }}
|
|
||||||
git push origin ${{ github.run_number }}
|
|
24
.gitea/workflows/commit.yml
Normal file
24
.gitea/workflows/commit.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: on push
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.MAINTAINER_TOKEN }}
|
||||||
|
|
||||||
|
- name: Push Git Tag
|
||||||
|
run: |
|
||||||
|
git config --global user.email "you@example.com"
|
||||||
|
git config --global user.name "Your Name"
|
||||||
|
|
||||||
|
git commit -m "empty commit" --allow-empty
|
||||||
|
git tag ${{ github.run_number }}
|
||||||
|
git push origin --all
|
|
@ -3,14 +3,14 @@ name: on tags
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
|
||||||
- name: Ref
|
- name: Ref
|
||||||
shell: bash
|
shell: bash
|
|
@ -1,4 +1,4 @@
|
||||||
# Forgejo action test: Subsequent workflows
|
# Gitea action test: Subsequent workflows
|
||||||
|
|
||||||
Is it possible to have subsequent workflow in Forgejo? Whenever I create a commit, gitea actions should tag it.
|
Is it possible to have subsequent workflow in Gitea? Whenever I create a commit, gitea actions should tag it.
|
||||||
On every tag gitea actions should be executed.
|
On every tag gitea actions should be executed.
|
||||||
|
|
Loading…
Add table
Reference in a new issue