Skip to content

chore: general updates #38

chore: general updates

chore: general updates #38

Workflow file for this run

---
name: CI
on:
pull_request:
branches: [master]
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
test_post:
runs-on: ubuntu-latest
strategy:
matrix:
target: [group, page]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: facebook-post-action
uses: ./
with:
page_id: ${{ matrix.target == 'group' && secrets.FACEBOOK_GROUP_ID || secrets.FACEBOOK_PAGE_ID }}
access_token: ${{ secrets.FACEBOOK_ACCESS_TOKEN }}
message: |
${{ github.event.repository.name }} - ${{ github.ref_name }}
${{ matrix.target == 'group' && 'Group' || 'Page' }} test successful
url: https://github.com/ReenigneArcher/facebook-post-action
fail_on_error: ${{ matrix.target == 'group' && 'false' || 'true' }}