updated github actions

master
Martin Scheidt 2022-12-19 22:02:19 +01:00
parent b276270ea6
commit 787d66165a
3 changed files with 17 additions and 19 deletions

View File

@ -45,9 +45,9 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
version: version:
- '1.6' - '1.6' # oldest
- '1.7' - '1.8' # current
- 'nightly' - 'nightly' # dev
os: os:
- ubuntu-latest - ubuntu-latest
- macOS-latest - macOS-latest
@ -55,7 +55,7 @@ jobs:
arch: arch:
# - x86 # - x86
- x64 - x64
# - aarch64 - aarch64
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1 - uses: julia-actions/setup-julia@v1

View File

@ -1,7 +1,7 @@
name: CompatHelper name: CompatHelper
on: on:
schedule: schedule:
- cron: 0 0 * * * - cron: 23 5 * * 5
workflow_dispatch: workflow_dispatch:
jobs: jobs:
CompatHelper: CompatHelper:

View File

@ -157,13 +157,12 @@ jobs:
# 3. push the change back to main # 3. push the change back to main
- name: push - name: push
uses: stefanzweifel/git-auto-commit-action@v4 uses: EndBug/add-and-commit@v9
with: with:
commit_message: "DOI updated to ${{needs.create_package.outputs.version}} (via github action)" message: "DOI updated to ${{needs.create_package.outputs.version}} (via github action)"
branch: main add: CITATION.cff
file_pattern: CITATION.cff author_name: railtoolkit
commit_user_name: railtoolkit author_email: railtoolkit@ownx.net
commit_user_email: railtoolkit@ownx.net
register: register:
needs: update_citation needs: update_citation
@ -175,15 +174,14 @@ jobs:
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
publish_twitter: publish_mastodon:
needs: publish_zenodo needs: publish_zenodo
name: "tweet about it" name: "Send toot about it to railtoolkit@fosstodon.org"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: - uses: cbrgm/mastodon-github-action@v1
- uses: devigned/go-twitter-action@v1
with: with:
message: "The new version ${{ github.event.inputs.version }} of TrainRuns.jl is available! DOI: https://doi.org/${{needs.publish_zenodo.outputs.doi}}" message: "The new version ${{ github.event.inputs.version }} of TrainRuns.jl is available! DOI: https://doi.org/${{needs.publish_zenodo.outputs.doi}}"
apiKey: ${{ secrets.TWITTER_API_KEY }} visibility: "public" # default: public
apiKeySecret: ${{ secrets.TWITTER_API_SECRET }} env:
accessToken: ${{ secrets.TWITTER_ACCESS_TOKEN }} MASTODON_URL: "https://fosstodon.org/"
accessTokenSecret: ${{ secrets.TWITTER_ACCESS_SECRET }} MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} # access token