Get available action data #1007
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |