Update .gitea/workflows/hello_world.yaml
Some checks failed
GitHub Actions Demo / Explore-GitHub-Actions (push) Failing after -2562047h47m16.854775808s
GitHub Actions Demo / Job-2 (push) Has been skipped

This commit is contained in:
lobo 2024-04-29 04:12:28 +00:00
parent 861c058480
commit 331b50d020

View File

@ -1,63 +1,67 @@
name: GitHub Actions Demo name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push] on: [push]
env: env:
ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }} ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACTIONS_RUNTIME_URL: https://git.lerch.org/api/actions_pipeline/ ACTIONS_RUNTIME_URL: https://git.lerch.org/api/actions_pipeline/
jobs: jobs:
Explore-GitHub-Actions: Explore-GitHub-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
shortsha: asdklfjdf shortsha: asdklfjdf
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event" - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event"
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: List files in the repository - name: List files in the repository
run: | run: |
ls ${{ github.workspace }} ls ${{ github.workspace }}
- run: true - run: true
# - name: Sign - name: Setup zig
# id: sign uses: https://git.lerch.org/lobo/setup-zig@master
# uses: https://git.lerch.org/lobo/action-hsm-sign@v1 with:
# with: version: 2024.3.0-mach
# pin: ${{ secrets.HSM_USER_PIN }} # - name: Sign
# files: ??? # id: sign
# public_key: 'https://emil.lerch.org/serverpublic.pem' # uses: https://git.lerch.org/lobo/action-hsm-sign@v1
# - run: | # with:
# echo "Source 0 should be ./bar: ${{ steps.sign.outputs.SOURCE_0 }}" # pin: ${{ secrets.HSM_USER_PIN }}
# - run: | # files: ???
# echo "Signature 0 should be ./bar.sig: ${{ steps.sign.outputs.SIG_0 }}" # public_key: 'https://emil.lerch.org/serverpublic.pem'
# - run: echo "URL of bar (0) is ${{ steps.sign.outputs.URL_0 }}" # - run: |
# - run: | # echo "Source 0 should be ./bar: ${{ steps.sign.outputs.SOURCE_0 }}"
# echo "Source 1 should be ./foo: ${{ steps.sign.outputs.SOURCE_1 }}" # - run: |
# - run: | # echo "Signature 0 should be ./bar.sig: ${{ steps.sign.outputs.SIG_0 }}"
# echo "Signature 1 should be ./foo.sig: ${{ steps.sign.outputs.SIG_1 }}" # - run: echo "URL of bar (0) is ${{ steps.sign.outputs.URL_0 }}"
# - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}" # - run: |
- name: list workflows # echo "Source 1 should be ./foo: ${{ steps.sign.outputs.SOURCE_1 }}"
if: always() # - run: |
run: ls ${{ github.workspace }}/.gitea/workflows/ # echo "Signature 1 should be ./foo.sig: ${{ steps.sign.outputs.SIG_1 }}"
- name: list workspace # - run: echo "URL of foo (1) is ${{ steps.sign.outputs.URL_1 }}"
if: always() # - name: list workflows
run: ls ${{ github.workspace }} # if: always()
# Needs gitea 1.20. See https://github.com/go-gitea/gitea/pull/22738 # run: ls ${{ github.workspace }}/.gitea/workflows/
- name: Upload # - name: list workspace
uses: actions/upload-artifact@v3 # if: always()
with: # run: ls ${{ github.workspace }}
name: foobar # Needs gitea 1.20. See https://github.com/go-gitea/gitea/pull/22738
path: '*' # - name: Upload
# - name: Notify # uses: actions/upload-artifact@v3
# uses: https://git.lerch.org/lobo/action-notify-ntfy@v1 # with:
# if: always() # name: foobar
# with: # path: '*'
# host: ${{ secrets.NTFY_HOST }} # - name: Notify
# topic: ${{ secrets.NTFY_TOPIC }} # uses: https://git.lerch.org/lobo/action-notify-ntfy@v1
# user: ${{ secrets.NTFY_USER }} # if: always()
# password: ${{ secrets.NTFY_PASSWORD }} # with:
- run: echo "🍏 This job's status is ${{ job.status }}." # host: ${{ secrets.NTFY_HOST }}
Job-2: # topic: ${{ secrets.NTFY_TOPIC }}
runs-on: ubuntu-latest # user: ${{ secrets.NTFY_USER }}
needs: Explore-GitHub-Actions # password: ${{ secrets.NTFY_PASSWORD }}
steps: - run: echo "🍏 This job's status is ${{ job.status }}."
- name: Show other output Job-2:
runs-on: ubuntu-latest
needs: Explore-GitHub-Actions
steps:
- name: Show other output
run: echo ${{ needs.Explore-GitHub-Actions.outputs.shortsha }} run: echo ${{ needs.Explore-GitHub-Actions.outputs.shortsha }}