You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.0 KiB
65 lines
2.0 KiB
name: _Scratchpad |
|
|
|
on: |
|
workflow_dispatch: |
|
# push: |
|
# branches: |
|
# - main |
|
|
|
permissions: |
|
contents: write |
|
pull-requests: write |
|
actions: read |
|
pages: write |
|
id-token: write |
|
|
|
jobs: |
|
notify: |
|
name: Notify ${{ matrix.name }} to the socials |
|
runs-on: self-hosted |
|
strategy: |
|
matrix: |
|
name: [pyTermTk] |
|
release-notes: ["#Test1 Notification\n\n##Test2\n\n###Test3\n\nContent!!!"] |
|
version: ["0.46.0-a.0"] |
|
steps: |
|
- uses: actions/checkout@v4 |
|
with: |
|
ref: ${{ github.sha }} |
|
- name: Set up Python 3.11 |
|
uses: actions/setup-python@v5 |
|
with: |
|
python-version: '3.11' |
|
- name: Install dependencies |
|
shell: bash |
|
run: |
|
pip install -e 'tools/ci[social]' |
|
- name: Notify ${{ matrix.name }} on Discord |
|
env: |
|
RN: ${{ matrix.release-notes }} |
|
MESSAGE: ${{ matrix.release-notes }} |
|
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} |
|
run: | |
|
notify-discord ${{ matrix.name }} v${{ matrix.version }} |
|
- name: Notify ${{ matrix.name }} on Github Discussion |
|
env: |
|
RN: ${{ matrix.release-notes }} |
|
MESSAGE: ${{ matrix.release-notes }} |
|
GITHUB_TOKEN: ${{ secrets.GH_PAT_TOKEN }} |
|
GH_DISCUSSION_TOKEN: ${{ secrets.GH_DISCUSSION_TOKEN }} |
|
run: | |
|
notify-gh-discussion ${{ matrix.name }} v${{ matrix.version }} |
|
- name: Notify ${{ matrix.name }} on Bluesky |
|
env: |
|
BLUESKY_APP_PWD: ${{ secrets.BLUESKY_APP_PWD }} |
|
BLUESKY_APP_IDENTIFIER: ${{ secrets.BLUESKY_APP_IDENTIFIER }} |
|
run: | |
|
notify-bluesky ${{ matrix.name }} v${{ matrix.version }} |
|
- name: Notify ${{ matrix.name }} on Twitter |
|
env: |
|
X_API_KEY: ${{ secrets.X_API_KEY }} |
|
X_API_SECRET: ${{ secrets.X_API_SECRET }} |
|
X_ACCESS_TOKEN: ${{ secrets.X_ACCESS_TOKEN }} |
|
X_ACCESS_TOKEN_SECRET: ${{ secrets.X_ACCESS_TOKEN_SECRET }} |
|
run: | |
|
notify-twitter ${{ matrix.name }} ${{ matrix.version }} |