-
Notifications
You must be signed in to change notification settings - Fork 18
53 lines (44 loc) · 1.44 KB
/
get-action-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Get available action data
on:
push:
branches:
- main
schedule:
- cron: 7 0 * * 1-5
# run manually
workflow_dispatch:
permissions:
contents: read
jobs:
get-action-data:
runs-on: ubuntu-latest
permissions:
contents: write # needed to write back the repository
steps:
- uses: devops-actions/[email protected]
name: Load available actions
id: load-actions
with:
PAT: ${{ secrets.PAT }}
user: ${{ github.repository_owner }}
- name: Update filename
id: filename
run: |
filename="actions-data.json"
mv ${{ steps.load-actions.outputs.actions-file-path }} $filename
echo "filename=$filename" >> $GITHUB_OUTPUT
- name: Upload result file as artefact
uses: actions/upload-artifact@v4
with:
name: actions
path: ${{ steps.filename.outputs.filename }}
- name: Upload json to this repository
#uses: LasyIsLazy/[email protected]
uses: rajbos-actions/[email protected]
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
file-path: ${{ steps.filename.outputs.filename }}
owner: ${{ github.repository_owner }}
repo: actions-marketplace # ${{ github.repository }} doesn't work with this action :-(, it'll fail over the slash and owner name
#remote-dir: // upload in the root
branch-name: gh-pages