Skip to content

Get available action data #1009

Get available action data

Get available action data #1009

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