mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
chore(social): run jobs in parallel
This commit is contained in:
parent
ebf7e382de
commit
a7a53e2998
18
.github/workflows/social.yml
vendored
18
.github/workflows/social.yml
vendored
|
@ -4,8 +4,10 @@ on:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
notify:
|
release-notes:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
notes: ${{ steps.notes.outputs.result }}
|
||||||
steps:
|
steps:
|
||||||
- name: Notes 📝
|
- name: Notes 📝
|
||||||
id: notes
|
id: notes
|
||||||
|
@ -21,7 +23,11 @@ jobs:
|
||||||
notes = notes.replace(/ \(\[[0-9a-z]+\]\(.*\)/g, '')
|
notes = notes.replace(/ \(\[[0-9a-z]+\]\(.*\)/g, '')
|
||||||
notes = notes.trim()
|
notes = notes.trim()
|
||||||
return notes
|
return notes
|
||||||
- name: Bluesky 🌤️
|
bluesky:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: release-notes
|
||||||
|
steps:
|
||||||
|
- name: Post 🌤️
|
||||||
id: bluesky
|
id: bluesky
|
||||||
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
|
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
|
||||||
with:
|
with:
|
||||||
|
@ -32,7 +38,7 @@ jobs:
|
||||||
await agent.login({identifier: '${{ secrets.BLUESKY_IDENTIFIER }}', password: '${{ secrets.BLUESKY_PASSWORD }}'})
|
await agent.login({identifier: '${{ secrets.BLUESKY_IDENTIFIER }}', password: '${{ secrets.BLUESKY_PASSWORD }}'})
|
||||||
|
|
||||||
const version = '${{ github.event.release.name }}';
|
const version = '${{ github.event.release.name }}';
|
||||||
const notes = `${{steps.notes.outputs.result}}`;
|
const notes = `${{ needs.release-notes.outputs.notes }}`;
|
||||||
|
|
||||||
const text = `📦 ${version}
|
const text = `📦 ${version}
|
||||||
|
|
||||||
|
@ -51,13 +57,17 @@ jobs:
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
mastodon:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: release-notes
|
||||||
|
steps:
|
||||||
- name: Toot 🐘
|
- name: Toot 🐘
|
||||||
uses: cbrgm/mastodon-github-action@d98ab3376f941df14d37d5737961de431c0838c6
|
uses: cbrgm/mastodon-github-action@d98ab3376f941df14d37d5737961de431c0838c6
|
||||||
with:
|
with:
|
||||||
message: |
|
message: |
|
||||||
📦 ${{ github.event.release.name }}
|
📦 ${{ github.event.release.name }}
|
||||||
|
|
||||||
${{steps.notes.outputs.result}}
|
${{ needs.release-notes.outputs.notes }}
|
||||||
|
|
||||||
${{ github.event.release.html_url }}
|
${{ github.event.release.html_url }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue