Update from feeds: https://galaxyproject.org/news/2024-09-05-galaxy-in-research-lin2024/ #127
Workflow file for this run
This file contains 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: Create Preview | |
on: | |
pull_request_target: | |
branches: [main] | |
types: [opened, synchronize, reopened] | |
paths: | |
- "posts/**" | |
workflow_dispatch: | |
inputs: | |
pr_number: | |
description: "The number of the pull request to handle" | |
required: true | |
type: number | |
jobs: | |
preview: | |
name: Preview | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
actions: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set environment variables | |
run: | | |
if [[ "${{ github.event.number }}" ]]; then | |
echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV | |
else | |
echo "PR_NUMBER=${{ github.event.inputs.pr_number }}" >> $GITHUB_ENV | |
fi | |
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 | |
- name: Run composite action | |
uses: ./.github/actions/galaxy-social | |
with: | |
preview: "true" |