-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (34 loc) · 1.45 KB
/
publish_content.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Publish Content
on:
pull_request_target:
branches: [main]
types: [closed]
paths:
- "posts/**"
jobs:
publish:
if: github.event.pull_request.merged == true
name: Publish content
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
actions: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set environment variables
run: |
echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
echo "MASTODON_ACCESS_TOKEN=${{ secrets.MASTODON_ACCESS_TOKEN }}" >> $GITHUB_ENV
echo "BLUESKY_PASSWORD=${{ secrets.BLUESKY_PASSWORD }}" >> $GITHUB_ENV
echo "MATRIX_ACCESS_TOKEN=${{ secrets.MATRIX_ACCESS_TOKEN }}" >> $GITHUB_ENV
echo "SLACK_ACCESS_TOKEN=${{ secrets.SLACK_ACCESS_TOKEN }}" >> $GITHUB_ENV
echo "MASTODON_EU_FR_TOKEN=${{ secrets.MASTODON_EU_FR_TOKEN }}" >> $GITHUB_ENV
echo "LINKEDIN_ACCESS_TOKEN=${{ secrets.LINKEDIN_ACCESS_TOKEN }}" >> $GITHUB_ENV
echo "BRC_MASTODON_ACCESS_TOKEN=${{ secrets.BRC_MASTODON_ACCESS_TOKEN }}" >> $GITHUB_ENV
echo "BRC_BLUESKY_PASSWORD=${{ secrets.BRC_BLUESKY_PASSWORD }}" >> $GITHUB_ENV
echo "BRC_LINKEDIN_ACCESS_TOKEN=${{ secrets.BRC_LINKEDIN_ACCESS_TOKEN }}" >> $GITHUB_ENV
- name: Run composite action
uses: ./.github/actions/galaxy-social