This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Mirror Release #315
This file contains hidden or 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: Mirror Release | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Fetch release info | |
| id: info | |
| run: | | |
| response=$(curl -s "https://code.itinerare.net/api/v1/repos/itinerare/Alcyone/releases") | |
| name=$(echo "$response" | jq -r '.[0].name') | |
| tag=$(echo "$response" | jq -r '.[0].tag_name') | |
| url=$(echo "$response" | jq -r '.[0].html_url') | |
| description=$(echo "$response" | jq -r '.[0].body') | |
| echo "name=$name" >> "$GITHUB_OUTPUT" | |
| echo "tag=$name" >> "$GITHUB_OUTPUT" | |
| echo "Mirrored from ${url}" > description.md | |
| echo "" >> description.md | |
| echo "${description}" >> description.md | |
| - name: Create/update release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| makeLatest: true | |
| allowUpdates: true | |
| tag: ${{ steps.info.outputs.tag }} | |
| name: ${{ steps.info.outputs.name }} | |
| bodyFile: "description.md" |